Further to #192831: win32 PHP can't handle "Name" <address@domain.com> which included a patch for an earlier version of Drupal I would like to submit the attached patch that can be applied to Mimemail 6.x-1.0-alpha2. This will help administrators who run PHP on Windows, where the mail() function is less forgiving than other operating systems.
I will attach patch shortly.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | mimemail.758922_02.patch | 2.16 KB | sgabe |
| #1 | mimemail-issue-758922.patch | 2.62 KB | eft |
Comments
Comment #1
eft commentedHere is the patch:
Comment #2
sgabe commentedChanging status, since we have a patch waiting to review.
Comment #3
sgabe commented#315239: Bad address syntax on Windows is marked as a duplicate of this. I'm also changing the category and the version.
Comment #4
sgabe commentedAttaching new patch against current DRUPAL-6--1.
Comment #5
sgabe commentedCommitted to both branches.
Comment #6
claudiu.cristeaWhy not autodetecting? I'm using this function in my Views Send module to fix automatically this problem (think is inspired from Simplenews module):
Comment #7
sgabe commentedBecause it's platform independent (flexible) and IMO less ugly. :)
Comment #8
claudiu.cristeaWith the patch, the site admin must know that on Windows systems they need to configure that... I don't think that most of them know this... They will have to investigate why mail sending fails and at the end they will find that setting and understand the meaning.
Yes... "platform independent" means exactly that the user doesn't need to perform additional settings based on platform. Ugly? Agree... but this is generated by an ugly implementation of PHP in Windows. This is addressing a bug and you can notice other similar "hacks" in Drupal.
Comment #9
sgabe commentedOkay, then let's improve the documentation. I think this option is enough to solve the problem and as we can see this is not a major issue, only a few people are effected by it. This issue is almost one year old and nobody responded to it. So I think we can live with this solution. :)
Comment #10
sgabe commentedI set this to fixed. If it doesn't prove to be enough, we can deal with it then.