Summary
- File
- Package hierarchy IO
- Class hierarchy \AbstractPHPMailerMailService \SMTPMailService
send(\Mail $mail)
Sends the mail. Throws an exception if the mail cannot be sent.
The mail to send |
None found |
try_to_send(\Mail $mail) : boolean
Tries to send the mail but doesn't throw any error whether the mail cannot be sent, it only returns false.
The mail to send |
True if the mail could be sent, false otherwise.
None found |
send_from_properties(string $mail_to, string $mail_subject, string $mail_content, string $mail_from = '', string $sender_name = \Mail::SENDER_ADMIN) : boolean
string | $mail_to | The mail recipients' address. |
string | $mail_subject | The mail subject. |
string | $mail_content | content of the mail |
string | $mail_from | The mail sender's address. |
string | $sender_name | The mail sender's name. If you don't use this parameter, the name of the site administrator will be taken. |
True if the mail could be sent, false otherwise.
None found |
is_mail_valid(string $mail_address) : boolean
Check whether the mail address is valid, it respects the mail RFC
string | $mail_address |
true if the mail is valid, false otherwise
None found |
get_mail_checking_regex() : string
Return the RFC mail regex.
the mail regex
None found |
get_mail_checking_raw_regex() : string
Return the RFC mail regex without delimiters, it's commonly used for compatibility with javascript regex.
the mail regex without delimiters
None found |
__construct(\SMTPConfiguration $configuration)
\SMTPConfiguration | $configuration |
None found |
set_send_settings(\PHPMailer\PHPMailer\PHPMailer $mailer)
\PHPMailer\PHPMailer\PHPMailer | $mailer |
None found |
$regex :
None found |
$mailer : \PHPMailer
None found |
$configuration : \SMTPConfiguration
None found |