On my server (maybe all servers) the mail() function fails silently if the email address contains uppercase characters. This is despite the fact that RFC 2822 doesn't make any case requirements.

This happens on php 5.2.0 and 4.4.6

The attached patch adds at strtolower for the to and from email addresses.

CommentFileSizeAuthor
#4 mail_strtolower.patch703 bytespancho
#1 strtolower_0.txt794 bytesdalin
strtolower.txt77.98 KBdalin

Comments

dalin’s picture

StatusFileSize
new794 bytes

Wow, why does Cervisia make such ugly patches.

This one is much cleaner.

dmitrig01’s picture

Status: Active » Needs review
catch’s picture

Status: Needs review » Needs work

No longer applies.

pancho’s picture

StatusFileSize
new703 bytes

Patch reroll.
Please check first, whether the problem still exists...

Anonymous’s picture

Status: Needs work » Closed (fixed)

Tested this on my system. Uppercase registration emails work without the patch. Has anybody else reported this problem?

chx’s picture

Status: Closed (fixed) » Postponed (maintainer needs more info)

Probably mail server related, needs more info.

dalin’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

Since the issue could not be reproduced we should close. If someone else runs into this problem they can re-open giving more details.