请大家给修正一下我的发邮件代码问题

2016-07-07 15:28 来源:www.chinab4c.com 作者:ecshop专家



这是我写在goods.php里的

/* 给商家发邮件 */
if ($_POST['myMail'] != '' && $_POST['toMail'] != '' && $_POST['subject'] != '')
{
send_mail($_POST['myMail'], $_POST['toMail'], $_POST['subject'], 'test---test', $tpl['is_html']);
}

这是goods.dwt模板里的

<form action="{$goodsUrl}" method="post" name="s">
<h3>Email a Friend</h3>
<h4>Friends' Email Addresses (separated by commas):</h4>
<input type="text" class="toMail" />
<h4>Email Subject Line:</h4>
<input type="text" class="subject" />
<h4>Body of Email Message:</h4>
<textarea style="height:80px;" name="content"></textarea>
<h4>lease enter your email address:</h4>
<input type="text" class="myMail" />
<input type="submit" class="sub" value="提交" />
</form>

回答:
路过,帮顶定起来

没人帮我

发送给什么邮件模板没说明,邮件模板没设置