产品使用及交流论坛

注册

 

QQ登录

只需一步,快速开始

发新话题 回复该主题

调用了在线留言的表格,然后实现点击后自动发指定的邮箱? [复制链接]

1#

表格如下图,如何实现点击提交后能发送到我指定的QQ邮箱呢?谢谢


代码如下:
<script type='text/javascript' src='/e/js/zdyform.js'></script>
<form enctype="multipart/form-data" method="post" action="/e/aspx/post.aspx" name="feedback">
    <table border="1" cellspacing="0" cellpadding="5" width="95%" align="center">
        <tbody>
            <tr>
                <td align="right">问题分类&nbsp;&nbsp;</td>
                <td><select id="sort" name="sort">
                <option value="" selected="selected">选择分类</option>
                <option value="555">|-询价</option>
                <option value="556">|-咨询</option>
                </select></td>
            </tr>
            <tr>
                <td align="right">主题 <span style="color: #ff0000">*</span></td>
                <td><input id="title" maxlength="50" style="width: 300px" name="title" type="text" /></td>
            </tr>
            <tr>
                <td align="right">联系人&nbsp;&nbsp;</td>
                <td><input id="pa_truename" maxlength="50" style="width: 200px" name="pa_truename" type="text" /></td>
            </tr>
            <tr>
                <td align="right">联系电话&nbsp;&nbsp;</td>
                <td><input id="pa_tel" maxlength="50" style="width: 200px" name="pa_tel" type="text" /></td>
            </tr>
            <tr>
                <td align="right">您的邮箱 <span style="color: #ff0000">*</span></td>
                <td><input id="email" maxlength="50" onblur="if(!IsEmail(this.value)){alert('无效的邮件格式');document.letter.fbk_email.value=''}" name="email" type="text" /></td>
            </tr>
            <tr>
                <td align="right">内容 <span style="color: #ff0000">*</span></td>
                <td><textarea id="content" name="content"></textarea></td>
            </tr>
            <script type='text/javascript' src='/e/incs/fckeditor/fckeditor.js'></script><script  type='text/javascript'>var FCKeditor = new FCKeditor('content');FCKeditor.BasePath = '/e/incs/fckeditor/';FCKeditor.Height = 400;FCKeditor.Config['LinkBrowser']= false;FCKeditor.Config['ImageBrowser']=false;FCKeditor.Config['FlashBrowser']=false;FCKeditor.Config['LinkUpload'] = false;FCKeditor.Config['ImageUpload'] =false;FCKeditor.Config['FlashUpload'] =false;FCKeditor.ToolbarSet ='Small';FCKeditor.ReplaceTextarea();</script>
            <tr>
                <td align="right">验证码<span style="color: #ff0000">*</span></td>
                <td><input id="vcode" maxlength="4" size="4" name="vcode" type="text" /> <img id="vcode_img" border="0" alt="点击更换" align="absMiddle" onclick="Code_Change('vcode_img')" style="cursor: pointer" src="/e/aspx/yzm.aspx" /></td>
            </tr>
            <tr>
                <td colspan="2" align="center"><input type="hidden" name="checked" value="0" /><input type="hidden" name="showcode" value="0" /><input type="hidden" name="to" /><input type="hidden" name="mailto" /><input type="hidden" name="mailreply" /><input type="hidden" name="mailsubject" /><input type="hidden" name="mailbody" /><input type="hidden" name="sendmail" value="0" /><input type="hidden" name="insertdatabase" value="1" /><input type="hidden" name="siteid" value="1" /><input type="hidden" name="formtable" value="feedback" /><input type="hidden" name="mustname" value="主题,邮箱,内容," /><input type="hidden" name="mustfield" value="title,email,content," /><input type="hidden" name="musttype" value="text,text,editor," /><input class="bt" type="button" onclick="return set_feedback()" value=" 提交 " /> <input class="bt" type="reset" value=" 重设 " /></td>
            </tr>
        </tbody>
    </table>
</form>
<script type="text/javascript">
function set_feedback()
{
document.forms["feedback"].mailto.value="";
document.forms["feedback"].mailreply.value="";
document.forms["feedback"].mailsubject.value="";
document.forms["feedback"].mailbody.value="";
return Check_ZdyForm("feedback");
}

function feedback_zdycheck(){
return true;
}
</script>
分享 转发
PAGEADMIN真心好,点赞
TOP
2#

<input type="hidden" name="sendmail" value="0" />里面的value改为1
然后js这段按下面方式修改。
document.forms["feedback"].mailto.value="接受邮箱";
document.forms["feedback"].mailreply.value="";
document.forms["feedback"].mailsubject.value=document.forms["feedback"].title.value;  
document.forms["feedback"].mailbody.value=document.forms["feedback"].content.value;
TOP
3#

我在在线留言模块中这样改了,留言能发送到指定邮箱,但是网站留言内容页空白,这是怎么回事呢?
TOP
4#

解决了
TOP
5#

始终无法收到邮件,是怎么解决的,能介绍一下吗?谢谢!
TOP
6#

mark!!!!!!!!!!
TOP
7#

指定邮箱一直收不到在线留言的邮件,请问楼上是怎么解决的,能介绍一下吗?谢谢!
TOP
发新话题 回复该主题