%if request("action")="send" then%>
<%
'参数说明
'Subject : 邮件标题
'MailAddress : 发件服务器的地址,如smtp.163.com
'Email : 收件人邮件地址
'Sender : 发件人姓名
'Content : 邮件内容
'Fromer : 发件人的邮件地址
Sub SendAction(subject, email, sender, content)
Set JMail = Server.CreateObject("JMail.Message")
JMail.Charset = "gb2312" ' 邮件字符集,默认为"US-ASCII"
jmail.ContentTransferEncoding = "base64"
jmail.Encoding ="base64"
jmail.ISOEncodeHeaders = false
JMail.ContentType = "text/html"
JMail.From = "wendiefei@163.com" ' 发送者地址
JMail.FromName = sender' 发送者姓名
JMail.Subject =subject
JMail.MailServerUserName = strMailUser' 身份验证的用户名
JMail.MailServerPassword = strMailPass ' 身份验证的密码
JMail.Priority = 3
JMail.AddRecipient(email)
JMail.Body = content
JMail.Send(strMailAddress)
End Sub
'调用此Sub的例子
Dim strSubject,strEmail,strMailAdress,strSender,strContent,strFromer
strSubject = "东原在线简历"
strContent = "姓名:" & Request("name") & VbCrLf & "
" & VbCrLf & "应聘岗位:" & Request("gangwei") & VbCrLf & "
" & VbCrLf & "性别:" & Request("xingbie") & VbCrLf & "
" & VbCrLf & "民族:" & Request("mingzu") & VbCrLf & "
" & VbCrLf & "出生年月:" & Request("age") & VbCrLf & "
" & VbCrLf & "身高:" & Request("ctl00$forarea$addhr1$workersengao") & VbCrLf & "
" & VbCrLf & "专业:" & Request("ctl00_forarea_addhr1_gongzi") & VbCrLf & "
" & VbCrLf & "毕业院校:" & Request("ctl00_forarea_addhr1_cizu") & VbCrLf & "
" & VbCrLf & "学历:" & Request("ctl00_forarea_addhr1_xueli") & VbCrLf & "
" & VbCrLf & "政治面貌:" & Request("ctl00$forarea$addhr1$workerdt") & VbCrLf & "
" & VbCrLf & "家庭住址:" & Request("ctl00$forarea$addhr1$naddr") & VbCrLf & "
" & VbCrLf & "联系电话:" & Request("contact") & VbCrLf & "
" & VbCrLf & "电子邮箱:" & Request("Email") & VbCrLf & "
" & VbCrLf & "QQ:" & Request("ctl00$forarea$addhr1$qq") & VbCrLf & "
" & VbCrLf & "身份证号码:" & Request("sfzhm") & VbCrLf & "
" & VbCrLf & "技术职称:" & Request("jszc") & VbCrLf & "
" & VbCrLf & "教育经历:" & Request("date2") & VbCrLf & "
" & VbCrLf & "工作经历:" & Request("date1")
strSender = "东原在线投简历系统"
strEmail = "2234017259@qq..com" '这是收信的地址,可以改为其它的邮箱
strMailAddress = "smtp.163.com" '我司企业邮局地址,请使用 mail.您的域名
strMailUser = "wendiefei" '我司企业邮局用户名
strMailPass = "zay8500717" '邮局用户密码
Call SendAction (strSubject,strEmail,strSender,strContent)
%>
<%else%>
<%end if%>