开通时间每周一至周五8:00~18:00
青岛网络基础服务门户站点
网通上网方式的用户按此访问电信上网方式的用户按此访问
青岛最优秀的网络服务提供商中文域名、英文域名按此查询/注册目前只提供青岛地区的网络实名注册服务性价比最高的企业邮局系统双线路机房+全功能支持的服务器确保您的虚拟主机高速稳定的运行青岛网通+青岛电信双线路机房为您量身定制开发企业网站、各类B/S架构应用系统影视点播系统、短信增值业务系统、货运管理系统、办公OA/CRM系统
   
 
  成功作品展示
  网站建设流程
  单项报价
  建站套餐报价
  新闻公告
  常见问题
  虚拟空间问题
  域名相关问题
  企业邮局问题
   
  0-13969877705
  0-13969877806
  tech@netqd.com
  ASP发邮件的例程(带EMail地址验证)
    

<%
inputMailTo = Trim(Request.Form("inputMailTo"))
inputMailFrom = Trim(Request.Form("inputMailFrom"))
inputMailSubject = Trim(Request.Form("inputMailSubject"))
textBoxMailBody = Trim(Request.Form("textBoxMailBody"))

dim ErrMsgInputMailTo,ErrMsgInputMailFrom,ErrMsgInputMailSubject

dim ErrMsgTextBoxMailBody,MsgSendResult

sendMail

sub sendMail()
if inputMailTo = "" then
ErrMsgInputMailTo = "不能为空"
exit sub
end if
if ValidateEmail(inputMailTo) = false then
ErrMsgInputMailTo = "E-Mail Address Error"
exit sub
end if
if inputMailFrom = "" then
ErrMsgInputMailFrom = "不能为空"
exit sub
end if
if ValidateEmail(inputMailFrom) = false then
ErrMsgInputMailFrom = "E-Mail Address Error"
exit sub
end if
if inputMailSubject = "" then
ErrMsgInputMailSubject = "不能为空"
exit sub
end if
if textBoxMailBody = "" then
ErrMsgTextBoxMailBody = "不能为空"
exit sub
end if

Set mail = Server.CreateObject("CDONTS.NewMail")
mail.To = inputMailTo
mail.From = inputMailFrom
mail.Subject = inputMailSubject
mail.Body = textBoxMailBody
mail.Send

MsgSendResult = "发送成功!From: " + inputMailFrom + "; To: " + inputMailTo

end sub
%>
<html>
<head>
<title>发送邮件 By ASP</title>
</head>
<body>
<div align="center">

<table width="100%" border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#eeeeee" id="AutoNumber1">
<form id="formMail" method="post" action="">
<tr>
<td width="20%" height="24">收件人地址: </td>
<td width="80%" height="24">
<input type="text" id="inputMailTo" name="inputMailTo" size="48" value="<% = inputMailTo %>
">
<font color="#ff0000">
<strong>
<% = ErrMsgInputMailTo %>
</strong>
</font>
</td>
</tr>
<tr>
<td width="20%" height="24">发件人地址: </td>
<td width="80%" height="24">
<input type="text" id="inputMailFrom" name="inputMailFrom" size="48" value="<% = inputMailFrom %>
">
<font color="#ff0000">
<strong>
<% = ErrMsgInputMailFrom %>
</strong>
</font>
</td>
</tr>
<tr>
<td width="20%" height="24">邮件主题: </td>
<td width="80%" height="24">
<input type="text" id="inputMailSubject" name="inputMailSubject" size="48" value="<% = inputMailSubject %>
">
<font color="#ff0000">
<strong>
<% = ErrMsgInputMailSubject %>
</strong>
</font>
</td>
</tr>
<tr>
<td width="20%" height="24">邮件内容: </td>
<td width="80%" height="24">
<textarea id="textBoxMailBody" name="textBoxMailBody" Rows="6" Cols="48">
<% = textBoxMailBody %>
</textarea>
<font color="#ff0000">
<strong>
<% = ErrMsgTextBoxMailBody %>
</strong>
</font>
</td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="submit" value="Send Mail" id="buttonSendMail" name="buttonSendMail">
</td>
</tr>
<tr>
<td colspan="2" align="center" height="24">
</td>
</tr>
<tr>
<td colspan="2" align="center">
<font color="#ff0000">
<strong>
<% = MsgSendResult %>
</strong>
</font>
</td>
</tr>
</form>
</table>



</div>
</body>
</html>

<%
Function ValidateEmail(Expression)
Dim objRegExp
Set objRegExp = New RegExp
objRegExp.Pattern = "^[\w\.-]+@[\w\.-]+\.[a-zA-Z]+$"
ValidateEmail = objRegExp.Test(Expression)
End Function
%>

 
 
 
 
 
 
 
 
 网络青岛,青岛最优秀的IDC服务站点 
为您量身定制,网站建设|网站开发|B/S系统开发|影视点播系统|电信增值系统|货运管理系统|办公OA|CRM系统
 
公司地址:青岛市闽江路172号软件大厦0512室 邮编:266071
联系电话:(0532)85971028 85971038
传真:(0532)85971028转8501 mail:webmaster@netqd.com
联系QQ:87695876 176650258