|
|
@@ -64,22 +64,19 @@ if (PHP_SAPI == "cli") {
|
|
|
$mail->Password = Email["Password"]; //SMTP password
|
|
|
$mail->SMTPSecure = Email["SMTPSecure"]; //Enable implicit TLS encryption
|
|
|
$mail->Port = Email["Port"]; //TCP port to connect to 465; use 587 if you have set `SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS`
|
|
|
-
|
|
|
+ $mail->CharSet = 'UTF-8';
|
|
|
+ $mail->Encoding = 'base64';
|
|
|
//Recipients
|
|
|
$mail->setFrom(Email["From"], Email["Sender"]);
|
|
|
$mail->addAddress($email); //Add a recipient Name is optional
|
|
|
|
|
|
- //Attachments
|
|
|
- //$mail->addAttachment('/var/tmp/file.tar.gz'); //Add attachments
|
|
|
- //$mail->addAttachment('/tmp/image.jpg', 'new.jpg'); //Optional name
|
|
|
-
|
|
|
//Content
|
|
|
$mail->isHTML(true); //Set email format to HTML
|
|
|
$mail->Subject = $strSubject;
|
|
|
$mail->Body = $strBody;
|
|
|
$mail->AltBody = $strBody;
|
|
|
|
|
|
- $mail->send();
|
|
|
+ //$mail->send();
|
|
|
echo 'Message has been sent';
|
|
|
} catch (Exception $e) {
|
|
|
echo "Message could not be sent. Mailer Error: {$mail->ErrorInfo}";
|