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();
显示文件
Open project: rsms/gitblog
Class Usage Examples
Public Properties
Public Methods
Method Details
__construct()
public method
public __construct ( $subject = null, $textbody = null ) |
addAddress()
public method
authorizedFromAddress()
public method
compose()
static public method
static public compose ( $subject, $textbody, $to = null, $from = null ) |
mkmailer()
static public method
needAuthorizedFromAddress()
public method
normalizeRecipient()
static public method
# returns array(addr, name | "")
rawRecipients()
public method
$deferred defaults to true if delivery subsystem is SMTP, otherwise
default is false (not using delay execution).
public send ( $deferred = null ) |
setDefaultConfig()
static public method
Property Details
$conf public_oe static_oe property
$default_from public_oe static_oe property
public static $default_from |
$mailer public_oe property