Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
229
Merge Requests
229
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
bc93618d
Commit
bc93618d
authored
Dec 14, 2012
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#1629994
by Aron Novak, oadaeh, yurtboy: Fixed Mail functions reference obsolete RFC.
parent
ff8202a7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
11 deletions
+16
-11
core/includes/common.inc
core/includes/common.inc
+2
-1
core/includes/mail.inc
core/includes/mail.inc
+3
-1
core/lib/Drupal/Core/Mail/MailInterface.php
core/lib/Drupal/Core/Mail/MailInterface.php
+11
-9
No files found.
core/includes/common.inc
View file @
bc93618d
...
...
@@ -1085,7 +1085,8 @@ function _drupal_http_use_proxy($host) {
/**
* Verifies the syntax of the given e-mail address.
*
* See @link http://tools.ietf.org/html/rfc5321 RFC 5321 @endlink for details.
* This uses the
* @link http://php.net/manual/filter.filters.validate.php PHP e-mail validation filter. @endlink
*
* @param $mail
* A string containing an e-mail address.
...
...
core/includes/mail.inc
View file @
bc93618d
...
...
@@ -92,7 +92,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 will be validated with the
* @link http://php.net/manual/filter.filters.validate.php PHP e-mail validation filter. @endlink
* Some examples are:
* - user@example.com
* - user@example.com, anotheruser@example.com
* - User <user@example.com>
...
...
core/lib/Drupal/Core/Mail/MailInterface.php
View file @
bc93618d
...
...
@@ -31,19 +31,21 @@ public function format(array $message);
* - 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:
* The formatting of this string will be validated with the
* @link http://php.net/manual/filter.filters.validate.php PHP e-mail validation filter. @endlink
* Some examples:
* - user@example.com
* - user@example.com, anotheruser@example.com
* - User <user@example.com>
* - User <user@example.com>, Another User <anotheruser@example.com>
*
- 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 additional mail headers not
*
defined by one of the other parameters. PHP's mail() looks for Cc
*
and
Bcc headers and sends the mail to addresses in these headers too.
* - 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 additional mail headers not
*
defined by one of the other parameters. PHP's mail() looks for Cc and
* Bcc headers and sends the mail to addresses in these headers too.
*
* @return bool
* TRUE if the mail was successfully accepted for delivery, otherwise FALSE.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment