コード例 #1
0
*/
/*
|require config file
|--------------------------------------------------------------------------
*/
require '../app_config.php';
/*
|require_once SUBMAILAutoload file
|--------------------------------------------------------------------------
*/
require_once '../SUBMAILAutoload.php';
/*
|init MAILXsend class
|--------------------------------------------------------------------------
*/
$submail = new MAILXsend($mail_configs);
/*
|Optional para
|--------------------------------------------------------------------------
|The First para: recipient email address
|The second para: recipient name(optional)
|@Multi-para
|--------------------------------------------------------------------------
*/
$submail->AddTo('*****@*****.**', 'leo');
/*
|Optional para
|--------------------------------------------------------------------------
|set addressbook sign : Optional
|add addressbook contacts to Multi-Recipients
|@Multi-para
コード例 #2
0
*/
/*
|载入 app_config 文件
|--------------------------------------------------------------------------
*/
require '../app_config.php';
/*
|载入 SUBMAILAutoload 文件
|--------------------------------------------------------------------------
*/
require_once '../SUBMAILAutoload.php';
/*
|初始化 MAILXsend 类
|--------------------------------------------------------------------------
*/
$submail = new MAILXsend($mail_configs);
/*
|可选参数
|--------------------------------------------------------------------------
|添加收件人
|第一个参数为联系人的邮件地址,第二个参数为联系人名称(可选)
|可多次调用
|--------------------------------------------------------------------------
*/
$submail->AddTo('*****@*****.**', 'name');
/*
|可选参数
|--------------------------------------------------------------------------
|添加地址薄标识
|可多次调用
|--------------------------------------------------------------------------