聯(lián)系官方銷售客服
1835022288
028-61286886
請教 @易學習 關于網(wǎng)站表單發(fā)送郵件問題
感謝你在 http://www.wendacms.com/10330.html 這個帖子中回答我的問題。關于這個問題,還有一些不明白的地方,就是當用戶提交時,網(wǎng)站表單自定義字段的內(nèi)容(比如$name,$sex,$age),如何隨著郵件一并發(fā)送至指定郵箱里?
這個是我的代碼,自定義字段發(fā)送至郵箱是空值,其中test.html模板我也按照開發(fā)文檔寫好了 http://help.xunruicms.com/28.html
protected function _Call_Post($data) {
// 發(fā)送郵件
\Phpcmf\Service::M('member')->sendmail(
"admin@123.com",
"ceshi",
"test.html",
['title' =>'', 'email' => '']
);
parent::_Call_Post($data);
這種寫法限于 name,sex,age必須是主表字段,而且必須是text類型的字段