Mercurial > defr > drupal > core
comparison includes/mail.inc @ 5:2427550111ae 6.2
Drupal 6.2
| author | Franck Deroche <webmaster@defr.org> |
|---|---|
| date | Tue, 23 Dec 2008 14:30:08 +0100 |
| parents | c1f4ac30525a |
| children | fff6d4c8c043 |
comparison
equal
deleted
inserted
replaced
| 4:d94886ac61a0 | 5:2427550111ae |
|---|---|
| 1 <?php | 1 <?php |
| 2 // $Id: mail.inc,v 1.8 2008/01/25 17:04:00 goba Exp $ | 2 // $Id: mail.inc,v 1.8.2.2 2008/04/02 08:41:30 goba Exp $ |
| 3 | 3 |
| 4 /** | 4 /** |
| 5 * Compose and optionally send an e-mail message. | 5 * Compose and optionally send an e-mail message. |
| 6 * | 6 * |
| 7 * Sending an e-mail works with defining an e-mail template (subject, text | 7 * Sending an e-mail works with defining an e-mail template (subject, text |
| 185 $message['to'], | 185 $message['to'], |
| 186 mime_header_encode($message['subject']), | 186 mime_header_encode($message['subject']), |
| 187 // Note: e-mail uses CRLF for line-endings, but PHP's API requires LF. | 187 // Note: e-mail uses CRLF for line-endings, but PHP's API requires LF. |
| 188 // They will appear correctly in the actual e-mail that is sent. | 188 // They will appear correctly in the actual e-mail that is sent. |
| 189 str_replace("\r", '', $message['body']), | 189 str_replace("\r", '', $message['body']), |
| 190 // For headers, PHP's API suggests that we use CRLF normally, | |
| 191 // but some MTAs incorrecly replace LF with CRLF. See #234403. | |
| 190 join("\n", $mimeheaders) | 192 join("\n", $mimeheaders) |
| 191 ); | 193 ); |
| 192 } | 194 } |
| 193 } | 195 } |
| 194 | 196 |
