PHP Class GBMail, gitblog
Configuration is stored in data/email.json.
Example of Google Mail SMTP delivery:
{
"admin": ["Your Self", "
[email protected]"],
"smtp": {
"secure": "ssl",
"host": "smtp.gmail.com",
"port": 465,
"username": "
[email protected]",
"password": "secret"
}
}
Example of sending mail using the convenience method "compose":
GBMail::compose('Hello', 'This is a mail', array('John Doe', '
[email protected]'))->send();
Afficher le fichier
Open project: rsms/gitblog
Class Usage Examples
Méthodes publiques
Méthodes publiques
Method Details
__construct()
public méthode
public __construct ( $subject = null, $textbody = null ) |
addAddress()
public méthode
authorizedFromAddress()
public méthode
compose()
static public méthode
static public compose ( $subject, $textbody, $to = null, $from = null ) |
mkmailer()
static public méthode
needAuthorizedFromAddress()
public méthode
normalizeRecipient()
static public méthode
# returns array(addr, name | "")
rawRecipients()
public méthode
$deferred defaults to true if delivery subsystem is SMTP, otherwise
default is false (not using delay execution).
public send ( $deferred = null ) |
setDefaultConfig()
static public méthode
Property Details
$conf public_oe static_oe property
$default_from public_oe static_oe property
public static $default_from |
$mailer public_oe property