Summary
- File
- Package hierarchy IO\Mail
- Class hierarchy \Mail
This class allows you to send mails without having to deal with the mail headers and parameters.
This class allows you to send mails without having to deal with the mail headers and parameters.
__construct()
Builds a Mail subject.
None found |
set_sender(string $sender, string $sender_name = self::SENDER_ADMIN)
Sets the mail sender.
string | $sender | The mail sender address. |
string | $sender_name | SENDER_ADMIN constante if the mail is sent by the administrator, SENDER_USER constante for user or string for other name |
None found |
set_reply_to(string $reply_to, string $reply_to_name = '')
Sets the mail to reply to.
string | $reply_to | The mail address to reply to. |
string | $reply_to_name | SENDER_ADMIN constante if the mail is sent by the administrator, SENDER_USER constante for user or string for other name |
None found |
add_recipient(string $address, string $name = '')
Adds a recipient to the list
string | $address | The address to which the mail must be sent |
string | $name | Name of the recipient (facultative) |
None found |
clear_recipients()
None found |
add_cc_recipient(string $address, string $name = '')
Adds a cc recipient to the list
string | $address | The address to which the mail must be sent |
string | $name | Name of the recipient (facultative) |
None found |
clear_cc_recipients()
None found |
add_bcc_recipient(string $address, string $name = '')
Adds a bcc recipient to the list
string | $address | The address to which the mail must be sent |
string | $name | Name of the recipient (facultative) |
None found |
clear_bcc_recipients()
None found |
get_recipients() : \string[string]
Returns a map associating email addresses to the corresponding names (can be empty).
None found |
get_cc_recipients() : \string[string]
Returns a map associating email addresses to the corresponding names (can be empty).
None found |
get_bcc_recipients() : \string[string]
Returns a map associating email addresses to the corresponding names (can be empty).
None found |
set_subject(string $subject)
Sets the mail subject
string | $subject | Mail subject |
None found |
set_content(string $content)
The mail content.
string | $content | The mail content |
None found |
set_headers(string $headers)
Sets the headers. Forces them, they won't be generated automatically.
string | $headers | The mail headers. |
None found |
get_sender_mail() : string
Returns the mail address of the sender.
the sender's mail address
None found |
get_sender_name() : string
Returns the mail sender's name.
The mail sender's name.
None found |
get_reply_to_mail() : string
Returns the mail address to reply to.
the reply to mail address
None found |
get_reply_to_name() : string
Returns the reply to mail sender's name.
The reply to mail sender's name.
None found |
get_subject() : string
Returns the mail subject.
The mail subject.
None found |
get_content() : string
Returns the mail content.
The mail content.
None found |
set_is_html( $is)
$is |
None found |
is_html()
None found |
check_mail( $mail)
None found |
$subject : \sting
None found |
$content : string
None found |
$sender_mail : string
None found |
$sender_name : string
None found |
$reply_to_mail : string
None found |
$reply_to_name : string
None found |
$headers : \The
None found |
$recipients : array<mixed,string>
None found |
$cc_recipients : array<mixed,string>
None found |
$bcc_recipients : array<mixed,string>
None found |
$is_html : string
None found |