Interface

MailService

Package: IO\Mail Copyright: © 2005-2019 PHPBoost License: GNU/GPL-3.0 Author: Benoit SAUTEL ben.popeye@phpboost.com Version: PHPBoost 5.2 - last update: 2014 12 22 Since: PHPBoost 3.0 - 2010 03 08 Located at: io/mail/MailService.class.php
Direct known implementers
AbstractPHPMailerMailService
Indirect known implementers
DefaultMailService, SMTPMailService
Methods summary
public
# send( Mail $mail )

Sends the mail. Throws an exception if the mail cannot be sent.

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.

public boolean
# send_from_properties( string $mail_to, string $mail_subject, string $mail_content, string $mail_from = '', string $sender_name = 'admin' )
public boolean
# is_mail_valid( string $mail_address )

Check whether the mail address is valid, it respects the mail RFC

public string
# get_mail_checking_regex( )

Return the RFC mail regex.

public string
# get_mail_checking_raw_regex( )

Return the RFC mail regex without delimiters, it's commonly used for compatibility with javascript regex.

Annonces