⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 email.asp

📁 ASP的招聘管理
💻 ASP
字号:
<%
if request("send") <> empty then 

  dim jmail,jmailstat
  set jmail=server.createobject("jmail.message")
   if err then
      err.clear
      response.write "组件检测失败"
      jmail.close()
      set jmail=nothing
   end if
   
  maildomain="mail.163.com"
  mailserver="smtp.163.com"
  mailserveruser="dlcmc"
  mailserverpass="baugdudn3416"
  
  mailtoaddress=request("shou_email")
  mailtoname=request("shou_name")
  mailfrom="dlcmc@163.com"
  fromname="大连理财网"
  subject=request("subject")
  mailbody=trim(request.Form("content1"))
'  response.Write(mailbody)
'  response.End()

 
 jmail.charset="gb2312"                         '邮件字符集
 jmail.silent=true                              '忽略错误
 jmail.contenttype = "text/html"                '邮件编码
 jmail.addrecipient mailtoaddress,mailtoname    '收件人地址
 jmail.returnreceipt = true                     '是否收条(验证中)
 jmail.from = mailfrom                          '发件人邮箱
 jmail.maildomain=maildomain                    '邮箱所在域名(验证中)
 jmail.fromname = fromname                      '发件人姓名
 jmail.mailserverusername=mailserveruser        '邮箱用户名
 jmail.mailserverpassword=mailserverpass        '邮箱密码
 jmail.subject=subject                    '邮件主题
 jmail.body=mailbody                      '邮件正文(纯文本格式)
 'jmail.hmtlbody=mailbody                  '邮件正文(html格式)
 jmail.priority=1                         '邮件等级,1为加急,3为普通,5为低级
 jmailstat=jmail.send(mailserver)
   if jmailstat then
      response.Redirect("sucess.html")
	  
   else
      response.Redirect("she.html")
   end if
 jmail.close()
 set jmail=nothing
  
else 
user_email = request("user_email") 
user_name = request("user_name") 
end if 
%>

<html> 
<head>
<title>e-mail</title>
<style type="text/css">
body{
font-size:12px;}
.ziti {
	font-size: 12px;
}
</style>
</head>
<body> 

<form action=email.asp method=post> 
 <table border=0 align="center" cellpadding="3" cellspacing="0" class="ziti"> 
   <tr> 
     <td><div align="right">收件人:</div></td> 
     <td> 
       <input type=text name=shou_email size=40 value="<%=user_email%>">     </td> 
   </tr> 
   <tr> 
     <td><div align="right">收件人姓名:</div></td> 
     <td> 
       <input type=text name=shou_name size=40 value="<%=user_name%>">     </td> 
   </tr> 
   <tr> 
     <td><div align="right">主题:</div></td> 
     <td> 
       <input type=text name=subject size=40>     </td> 
   </tr> 
   <tr> 
     <td><div align="right">内容:</div></td> 
     <td> 
	 <input type="hidden" name="content1" value="大连理财网" />
        <iframe id="eWebEditor1" src="../../webedit/ewebeditor.htm?id=content1&amp;style=coolblue" frameborder="0" scrolling="No" width="550" height="350"></iframe></td> 
   </tr> 
   <tr> 
     <td colspan="2"> 
       <div align="center"> 
         <input type=submit value=" 发 送 " name="send"> 
		 <input type=reset value=" 重 填 " name="rrrr"> 
       </div>     </td> 
   </tr> 
 </table> 
</form>
</body> 
</html> 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -