The day before yesterday I wrote an example of using PHP to send an email using jmail. Today I accidentally sent an email, so I used ASP to flip it down: program code <%
Dim jmail: Set jmail = server. Createobject ("jmail. Message ")
'Blocking exception errors and silent Processing
Jmail. Silent = true
'Encoding is required; otherwise, Chinese characters will be garbled.
Jmail. charset = "gb2312"
'User-defined email address and name, which can be different from the email sending account
Jmail. From = "admin@domain.com"
Jmail. fromname = "webmaster"
'Add multiple Email recipients
Jmail. addrecipient ("xxxx@qq.com ")
'Subject and body information
Jmail. Subject = "ASP + jmail test mail"
Jmail. Body = "ASP + jmail test mail body"
'Mail account and password
Jmail. mailserverusername = "xxxx@sogou.com"
Jmail. mailserverpassword = "123456"
'Sending with the SMTP sending server address
Dim retval: retval = jmail. Send ("smtp.mail.sogou.com ")
If err. Number <> 0 then err. Clear: Response. Write "error"
If retval = true then response. Write "sent successfully" else response. Write "failed to send"
%>
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service