Simple mail helper function The formatting of the email addresses must comply with RFC 2822. Some examples are:
Parameters | |||
---|---|---|---|
string
|
$from |
The sender of the mail |
# |
string
|
$to |
The receiver or receivers of the mail |
# |
string
|
$subject = '' |
Subject of the email to be sent. |
# |
string
|
$message = '' |
Message to be sent |
# |
string
|
$cc = '' |
The CC receiver or receivers of the mail |
# |
string
|
$bcc = '' |
The Bcc receiver or receivers of the mail |
# |
Returns | |
---|---|
boolean
|
Returns TRUE if the mail was successfully accepted for delivery, FALSE otherwise |