方法介紹
返回值
成功 true 失敗false
用法舉例
1、直接發(fā)送內(nèi)容
\Phpcmf\Service::M('member')->sendmail(
"a@qq.com",
"郵件標(biāo)題",
"郵件內(nèi)容");2、模板內(nèi)容發(fā)送
\Phpcmf\Service::M('member')->sendmail(
"a@qq.com",
"郵件標(biāo)題",
"email.html",
['name' => 'name變量值', 'time' => '時(shí)間變量']
);
// 它會(huì)調(diào)用test.html模板內(nèi)容并替換第四個(gè)參數(shù)的變量模板文件路徑./config/notice/站點(diǎn)ID/email/test.html