Closed (fixed)
Project:
Messaging
Version:
6.x-1.0
Component:
PHPMailer
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
19 Dec 2008 at 19:09 UTC
Updated:
13 Feb 2009 at 19:10 UTC
The attached patch (DRUPAL-6--1) for messaging_phpmailer.module looks in $message['headers']['From'] for formatting like:
"Mr Magoo"
'Mr Magoo'
Mr Magoo
If it finds such formatting, it will appropriately set $mail->From and $mail->FromName. If it does not find such formatting, there is no change from the current behaviour.
Note that this format may also end up being the default in D7: http://drupal.org/node/209672
| Comment | File | Size | Author |
|---|---|---|---|
| rfc2822.patch | 1.13 KB | ryan_courtnage |
Comments
Comment #1
ryan_courtnage commentedwhoop, those formatting examples were supposed to look like:
Comment #2
jose reyero commentedThanks, looks good, committed with a few minor changes (to avoid php notices). Also we better don't use the same text for From and FromName, because we may get this, #366810: PHPMailer "From" header is broken