mirror of
https://git.steelants.cz/SH/PHP_SMART_HOME_V3.git
synced 2026-10-11 17:54:34 +00:00
Add email to create user, in setting edit user permission and emailmanager file
This commit is contained in:
1 parent
740a2debf7
commit
6b7bd911f7
8 files changed
+56
-7
No files matched your search
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
class EmailManager {
|
||||
public function SendTo ($pro, $predmet, $zprava) {
|
||||
$email = "From: EnergyCounter@steelants.cz";
|
||||
$email .= "\nMIME-Version: 1.0\n";
|
||||
$email .= "Content-Type: text/html; charset=\"utf-8\"\n";
|
||||
if (!mb_send_mail ($pro, $predmet, $zprava, $email)) {
|
||||
throw new PDOException("!Email se nepodařilo odeslat!");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user