Methods summary
public
|
#
send( Mail $mail )
Sends the mail. Throws an exception if the mail cannot be sent.
Sends the mail. Throws an exception if the mail cannot be sent.
Parameters
Throws
Implementation of
|
public
boolean
|
#
try_to_send( Mail $mail )
Tries to send the mail but doesn't throw any error whether the mail cannot be sent,
it only returns false.
Tries to send the mail but doesn't throw any error whether the mail cannot be sent,
it only returns false.
Parameters
Returns
boolean True if the mail could be sent, false otherwise.
Implementation of
|
public
boolean
|
#
send_from_properties( string $mail_to, string $mail_subject, string $mail_content, string $mail_from = '', string $sender_name = Mail::SENDER_ADMIN )
Deprecated
Sends the mail.
Parameters
- $mail_to
- The mail recipients' address.
- $mail_subject
- The mail subject.
- $mail_content
- content of the mail
- $mail_from
- The mail sender's address.
- $sender_name
- The mail sender's name. If you don't use this parameter, the name of the site administrator will be taken.
Returns
boolean True if the mail could be sent, false otherwise.
Implementation of
|
abstract protected
|
|
public
boolean
|
#
is_mail_valid( string $mail_address )
Check whether the mail address is valid, it respects the mail RFC
Check whether the mail address is valid, it respects the mail RFC
Parameters
Returns
boolean true if the mail is valid, false otherwise
Implementation of
|
public
string
|
#
get_mail_checking_regex( )
Return the RFC mail regex.
Return the RFC mail regex.
Returns
string the mail regex
Implementation of
|
public
string
|
#
get_mail_checking_raw_regex( )
Return the RFC mail regex without delimiters, it's commonly used for compatibility with javascript regex.
Return the RFC mail regex without delimiters, it's commonly used for compatibility with javascript regex.
Returns
string the mail regex without delimiters
Implementation of
|