diff --git a/includes/common.inc b/includes/common.inc index ea353d1..b7d671c 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -991,7 +991,7 @@ function t($string, $args = array(), $langcode = NULL) { /** * Verifies the syntax of the given e-mail address. * - * See RFC 2822 for details. + * See @link http://tools.ietf.org/html/rfc5322 RFC 5322 @endlink for details. * * @param $mail * A string containing an e-mail address. diff --git a/includes/mail.inc b/includes/mail.inc index a778ac5..51bad4d 100644 --- a/includes/mail.inc +++ b/includes/mail.inc @@ -59,7 +59,9 @@ * will be {$module}_{$key}. * @param $to * The e-mail address or addresses where the message will be sent to. The - * formatting of this string must comply with RFC 2822. Some examples are: + * formatting of this string must comply with + * @link http://tools.ietf.org/html/rfc5322 RFC 5322 @endlink. + * Some examples are: * user@example.com * user@example.com, anotheruser@example.com * User @@ -145,26 +147,23 @@ function drupal_mail($module, $key, $to, $language, $params = array(), $from = N * how $message is composed. * * @param $message - * Message array with at least the following elements: - * - id - * A unique identifier of the e-mail type. Examples: 'contact_user_copy', - * 'user_password_reset'. - * - to - * The mail address or addresses where the message will be sent to. The - * formatting of this string must comply with RFC 2822. Some examples are: - * user@example.com - * user@example.com, anotheruser@example.com - * User - * User , Another User - * - subject - * Subject of the e-mail to be sent. This must not contain any newline - * characters, or the mail may not be sent properly. - * - body - * Message to be sent. Accepts both CRLF and LF line-endings. - * E-mail bodies must be wrapped. You can use drupal_wrap_mail() for - * smart plain text wrapping. - * - headers - * Associative array containing all mail headers. + * Message array with at least the following elements: + * - id: A unique identifier of the e-mail type. Examples: + * 'contact_user_copy', 'user_password_reset'. + * - to: The mail address or addresses where the message will be sent to. The + * formatting of this string must comply with + * @link http://tools.ietf.org/html/rfc5322 RFC 5322 @endlink. + * Some examples are: + * user@example.com + * user@example.com, anotheruser@example.com + * User + * User , Another User + * - subject: Subject of the e-mail to be sent. This must not contain any + * newline characters, or the mail may not be sent properly. + * - body: Message to be sent. Accepts both CRLF and LF line-endings. + * E-mail bodies must be wrapped. You can use drupal_wrap_mail() for + * smart plain text wrapping. + * - headers: Associative array containing all mail headers. * @return * Returns TRUE if the mail was successfully accepted for delivery, * FALSE otherwise.