$mailtitle = $name."提交表單通知";$mailbody = "稱呼:{$name}/r/n郵箱:{$email}/r/n內容:{$message}";$headers = $cfg_adminemail;$mailtype = 'TXT';require_once(DEDEINC.'/mail.class.php');$smtp = new smtp($cfg_smtp_server,$cfg_smtp_port,true,$cfg_smtp_usermail,$cfg_smtp_password);$smtp->debug = false;$smtp->sendmail($cfg_smtp_usermail,$cfg_webname ,$cfg_smtp_usermail, $mailtitle, $mailbody, $mailtype);注:$name $email $message 三個變量都是提交的字段,你提交的字段名稱前面加$符號就行,這個根據你的需要來改。然后保存。 新聞熱點
疑難解答