Skip to content

Conversation

@fridde
Copy link

@fridde fridde commented Mar 13, 2018

Solved a bug where the subject property created by PHPMailer was not translated and thus the test $I->seeInOpenedEmailSubject('This is å wéird Swödish subjäct') was causing problems for me.

The if-clause checked only for =?utf-8?Q? but PHPMailer starts its subjects with =?UTF-8?Q?.

With the extra conversion to lowercase we should be on the safe side.

Solved a bug where the subject property created by PHPMailer was not translated.
The if clause checked only for "=?utf-8?Q?" but PHPMailer starts its subjects with "=?UTF-8?Q?".

With the extra conversion to lowercase we should be on the safe side.
@fridde
Copy link
Author

fridde commented Mar 13, 2018

By the way, I found out that actually I myself was the person creating a PHPMailer instance with $PHPMailer->CharSet = 'UTF-8', so my statement that PHPMailer always starts its subjects with =?UTF-8?Q? was not really true, it simply allows for an uppercase specification of the charset and the current implementation of the test module doesn't allow for an uppercase specification.

Anyway, I think there's no harm in my pull request. Hope it's allright.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant