Easy to bypass SMTP server body verification

Source: Internet
Author: User
Tags mail
Due to technical and security issues, most of the virtual host service providers now use the JMail component to provide ASP script to send mail services, the sending code is as follows:

Set JMail = Server.CreateObject ("Jmail.smtpmail")
jmail.serveraddress = "SMTP Server Address"
Jmail.sender = "Sender mail Address"
Jmail.subject = "message subject"
Jmail.addrecipient "Recipient email Address"
Jmail.body = "message body"
jmail.priority = 1
Jmail.execute

The SMTP server that is set up requires authentication, such as the smtp.21cn.com server, which only allows sending mail addresses to be *@21cn.com messages, so it is not possible to send all messages freely.

So, I thought of a way: Try to cheat the SMTP server. Write the ASP send code as follows:

Set JMail = Server.CreateObject ("Jmail.smtpmail")
jmail.serveraddress = "Smtp.21cn.com"
Jmail.sender = "Myside@21cn.com"
Jmail.subject = "message subject"
Jmail.addrecipient Recipient Email Address
Jmail.body = "The sending address of this message is:" & "The True Mail Sender address" & ", if you want to reply this email, please send to" & "the True Mail Sender address" & vbCrLf & "message body
jmail.priority = 1
Jmail.execute

So every time send mail, smtp.21cn.com server is thought to be myside@21cn.com send mail, so can pass the verification smoothly. When the recipient receives the message, it appears in the first line of the body of the message "The sending address of this message is: (The real address), if you want to reply to this message, please send to (the real address)" such text. Detailed send the page source code please pointDownload Here




Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.