<%
Sub JMail (email)
Dim Jmail,sendmail
Set jmail=server.createobject ("Jmail.smtpmail")
Jmail.logging=true
jmail.charset= "gb2312"
Jmail.contenttype = "Text/html"
Jmail.serveraddress=smtpserver
Jmail.sender=systememail
Jmail.subject=topic
Jmail.body=mailbody
Jmail.addrecipient Email
Jmail.priority=3
Jmail.execute
Set jmail=nothing
If Err Then
Sendmail=err.description
Err.Clear
Else
Sendmail= "OK"
End If
End Sub
Sub Cdonts (email)
Dim objcdomail
Set Objcdomail = Server.CreateObject ("CDONTS. NewMail ")
Objcdomail.from =systememail
Objcdomail.to =email
Objcdomail.subject =topic
Objcdomail.body =mailbody
Objcdomail.send
Set Objcdomail = Nothing
If Err Then
Sendmail=err.description
Err.Clear
Else
Sendmail= "OK"
End If
End Sub
Sub AspEmail (email)
Set mailer=server.createobject ("Aspmail. ASPMAILCTRL.1 ")
Recipient=email
Sender=systememail
Subject=topic
Message=mailbody
Mailserver=smtpserver
Result=mailer. SendMail (mailserver, recipient, sender, subject, message)
If Err Then
Sendmail=err.description
Err.Clear
Else
Sendmail= "OK"
End If
End Sub
%>
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.