File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ use PHPMailer\PHPMailer\PHPMailer;
4949Mailer::connect([
5050 'host' => 'smtp.mailtrap.io',
5151 'port' => 2525,
52+ 'charSet' => PHPMailer::CHARSET_UTF8,
5253 'security' => PHPMailer::ENCRYPTION_STARTTLS,
5354 'auth' => [
5455 'username' => 'MAILTRAP_USERNAME',
Original file line number Diff line number Diff line change @@ -46,6 +46,10 @@ public static function connect($connection)
4646 static ::$ mailer ->Host = $ connection ['host ' ];
4747 static ::$ mailer ->Port = $ connection ['port ' ];
4848
49+ if (isset ($ connection ['charSet ' ])) {
50+ static ::$ mailer ->CharSet = $ connection ['charSet ' ];
51+ }
52+
4953 if (isset ($ connection ['keepAlive ' ]) || isset (static ::$ config ['keepAlive ' ])) {
5054 static ::$ mailer ->SMTPKeepAlive = $ connection ['keepAlive ' ] ?? static ::$ config ['keepAlive ' ];
5155 }
You can’t perform that action at this time.
0 commit comments