JMail an alternative solution to a failed email validation failure
Source: Internet
Author: User
After a few days of precipitation and research, turned rotten the essence of the forum, found that asked the question is really a lot of people, but I finally put the damn jmail email verification problem, although not perfect, but at least it can be done. Verification by research found that Sina's SMTP authentication is too powerful, no matter how the data are said validation failed, so I hold the attitude to try to www.126.com apply for a 50MB mailbox (ha, Super big, hurry up!) and tried to report "invalid user", so I took Msg. From also changed to tindy@126.com, the miracle happened, the Mail sent out, also!!! The code is as follows:
Set msg = Server.CreateObject ("Jmail.message")
Msg.silent = True
Msg. Logging = True
Msg. Charset = "gb2312"
Msg. Mailserverusername = "Tindy@126.com"
Msg. Mailserverpassword = "My mailbox password"
Msg. AddHeader "Originating-ip", Request.ServerVariables ("REMOTE_ADDR")
Msg. from = "Tindy@126.com" Is this guy, can't write casually, must fill in your 126.com to apply for the mailbox, very puzzled
Msg. FromName = Request.Form ("Name")
Msg. AddRecipient "Tindy@sina.com"
Msg. Subject = "Test"
Body=request.form ("Content")
Msg. BODY = Body
If not MSG. Send ("smtp.126.com") Then
Response.Write "<pre>" & Msg.log & "</pre>"
Else
Set msg = Nothing
Response.Write "The message has been sent! "
End If
'========================================
Known problem is, for the SMTP authentication of Sina, the same method, but can not pass, has been puzzled, hope the master can help me solve, because I do not want to log 126.com every month mailbox, not free.
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.