Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #836

Merged
merged 2 commits into from
Jan 2, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
PHPMailer uses UTF-8 now
  • Loading branch information
sr-verde committed Jan 2, 2017
commit badf119b885b6914b6cba5df708e39213484042a
3 changes: 3 additions & 0 deletions application/core/Mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ public function sendMailWithSwiftMailer()
public function sendMailWithPHPMailer($user_email, $from_email, $from_name, $subject, $body)
{
$mail = new PHPMailer;

// you should use UTF-8 to avoid encoding issues
$mail->CharSet = 'UTF-8';

// if you want to send mail via PHPMailer using SMTP credentials
if (Config::get('EMAIL_USE_SMTP')) {
Expand Down