+ Fixed encoding bug in email

This commit is contained in:
Djery-Tom 2020-10-22 20:03:07 +01:00
parent 59a61c1d98
commit 45c54a1155
1 changed files with 2 additions and 1 deletions

View File

@ -59,6 +59,7 @@ class Messenger
$this->mail->Password = 'ilink2017GA'; // SMTP password $this->mail->Password = 'ilink2017GA'; // SMTP password
$this->mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS; // Enable TLS encryption; `PHPMailer::ENCRYPTION_SMTPS` encouraged $this->mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS; // Enable TLS encryption; `PHPMailer::ENCRYPTION_SMTPS` encouraged
$this->mail->Port = 587; $this->mail->Port = 587;
$this->mail->CharSet = 'UTF-8';
try { try {
$this->client = new Client(Messenger::AccountSid,Messenger::AuthToken); $this->client = new Client(Messenger::AccountSid,Messenger::AuthToken);
@ -89,7 +90,7 @@ class Messenger
} }
public function sendMail(){ public function sendMail(){
//Recipients //Recipients
$this->mail->setFrom('noreply@ilink-app.com', 'Ilink World'); $this->mail->setFrom('noreply@ilink-app.com', 'iLink World');
$this->mail->addAddress($this->getReceiverMail()); // Add a recipient $this->mail->addAddress($this->getReceiverMail()); // Add a recipient
// Content // Content
// $this->mail->isHTML(true); // Set email format to HTML // $this->mail->isHTML(true); // Set email format to HTML