Add email to create user, in setting edit user permission and emailmanager file
This commit is contained in:
11
app/models/managers/EmailManager.php
Normal file
11
app/models/managers/EmailManager.php
Normal file
@@ -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