php-simple-mail
php-simple-mail copied to clipboard
Gmail and Yahoo not receiving messages
I had to change the encodeUtf8() function to receive messages on Gmail and Yahoo:
public function encodeUtf8($value) {
$value = trim($value);
return mb_detect_encoding($value) === 'ASCII' ? $value : $this->encodeUtf8Word($value);
}
@eoghanobrien: Do you think this worth a pull request?
@icefront: Would you create an example to demonstrate the problem?
@k00ni Yes, a pull request that passes the tests and adds a test for this case would be accepted.