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
306
Merge Requests
306
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
9d5d9ab0
Commit
9d5d9ab0
authored
Jul 07, 2006
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Patch
#72137
by Ber: improved Doxygen of user_mail().
parent
f9ecf1b2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
2 deletions
+44
-2
modules/user.module
modules/user.module
+22
-1
modules/user/user.module
modules/user/user.module
+22
-1
No files found.
modules/user.module
View file @
9d5d9ab0
...
...
@@ -382,7 +382,28 @@ function user_is_blocked($name) {
}
/**
* Send an e-mail message.
* Send an e-mail message, using Drupal variables and default settings.
* More information in the <a href="http://php.net/manual/en/function.mail.php">
* PHP function reference for mail()</a>
* @param $mail
* The mail address or addresses where the message will be send 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@example.com>
* User <user@example.com>, Another User <anotheruser@example.com>
* @param $subject
* Subject of the e-mail to be sent. This must not contain any newline
* characters, or the mail may not be sent properly.
* @param $message
* Message to be sent. Drupal will format the correct line endings for you.
* @param $header
* String to be inserted at the end of the e-mail header. This is typically
* used to add extra headers (From, Cc, and Bcc). Multiple extra headers
* should be separated with a CRLF (\r\n).
* <em>When sending mail, the mail must contain a From header.</em>
* @return Returns TRUE if the mail was successfully accepted for delivery,
* FALSE otherwise.
*/
function
user_mail
(
$mail
,
$subject
,
$message
,
$header
)
{
if
(
variable_get
(
'smtp_library'
,
''
)
&&
file_exists
(
variable_get
(
'smtp_library'
,
''
)))
{
...
...
modules/user/user.module
View file @
9d5d9ab0
...
...
@@ -382,7 +382,28 @@ function user_is_blocked($name) {
}
/**
* Send an e-mail message.
* Send an e-mail message, using Drupal variables and default settings.
* More information in the <a href="http://php.net/manual/en/function.mail.php">
* PHP function reference for mail()</a>
* @param $mail
* The mail address or addresses where the message will be send 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@example.com>
* User <user@example.com>, Another User <anotheruser@example.com>
* @param $subject
* Subject of the e-mail to be sent. This must not contain any newline
* characters, or the mail may not be sent properly.
* @param $message
* Message to be sent. Drupal will format the correct line endings for you.
* @param $header
* String to be inserted at the end of the e-mail header. This is typically
* used to add extra headers (From, Cc, and Bcc). Multiple extra headers
* should be separated with a CRLF (\r\n).
* <em>When sending mail, the mail must contain a From header.</em>
* @return Returns TRUE if the mail was successfully accepted for delivery,
* FALSE otherwise.
*/
function
user_mail
(
$mail
,
$subject
,
$message
,
$header
)
{
if
(
variable_get
(
'smtp_library'
,
''
)
&&
file_exists
(
variable_get
(
'smtp_library'
,
''
)))
{
...
...
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