【用JMail组件】
要求,服务器上装了这个插件
发送步骤:本机 - 指定邮箱
【用桥接服务器】
把表单里面的信息通过第三方服务器发送到指定的邮箱
发送步骤:本机 - 第三方服务器 -指定邮箱
-------------------------------------------------------------------------
第三方指定邮箱有个麻烦点,就是如果该服务器,,的地址转变了。。功能就失效了,,
-------------------------------------------------------------------------------
'源码:
-----------------------------------------------------------------------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>测试代码</title>
</head>
<body>
<form
action="http://nt2.ce.net.cn/scripts/email/send.asp"
method="post" name="submitform" id="submitform">
<input type="hidden" value="fzfq_vip@163.com"
name="sendemail" />
<input type="hidden" value="From Website"
name="subject" />
<span class="unnamed1">
<script language="JavaScript" type="text/javascript">
function isEmail(vEMail)
{
var regInvalid=/(@.*@)|(/./.)|(@/.)|(/.@)|(^/.)/;
var regValid=/^.+/@(/[?)[a-zA-Z0-9/-/.]+/.([a-zA-Z]{2,3}|[0-9]{1,3})(/]?)$/;
return (!regInvalid.test(vEMail)&®Valid.test(vEMail));
}
function check()
{
{ document.submitform.tHtml.value=document.submitform.innerHTML;
document.submitform.submit();}
}
</script>
</span>
<div align="left">
<table border="1" cellspacing="0" width="60%" bordercolorlight="#333333" bordercolordark="#efefef">
<tbody>
<tr bgcolor="#cccccc">
<td colspan="4" height="30"><table width="100%" border="0">
<tbody>
<tr>
<td class="WORD" align="right" width="25%">您现在是:</td>
<td class="WORD" align="left" width="75%"><input