let mail library do From: building
Nick Brown - September 23, 2005 - 16:09
| Project: | |
| Version: | 4.6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | minor |
| Assigned: | Unassigned |
| Status: | needs review |
Description
Why build the From address ourself when the library can do it for us?
Patch below fixes this.
--- mail.module~ 2005-06-22 15:12:09.000000000 +0100
+++ mail.module 2005-09-23 17:01:21.915960608 +0100
@@ -284,7 +284,7 @@
function mail_send($mail) {
require_once('activeMailLib.php');
$email = new activeMailLib($mail->mail_format);
- $email->From($mail->from_name . ' <' . $mail->from_address . '>');
+ $email->From($mail->from_address , $mail->from_name);
$email->To($mail->to);
$email->Subject($mail->title);
$email->Message($mail->message, $mail->mail_character_set, $mail->mail_encode);
