Use jmail to implement ASP program to automatically send emails

Source: Internet
Author: User
After a long time, I couldn't receive emails. It turned out that the parameter was set incorrectly. The complete source code is as follows:

<%
MailServer = "172.16.1.130" 'smtp server address
mailname = "bany@banysky.com" 'mail mailbox
mailpassword = "bany" 'mail Password
usermail = "bany@banysky.com"
dim MSG
clstr = CHR (13) & CHR (10)
set MSG = server. createobject ("jmail. message ")
MSG. silent = true
MSG. logging = true
MSG. charset = "gb2312"
MSG. mailserverusername = mailname
MSG. mailserverpassword = mailpassword
MSG. from = mailna Me
MSG. fromname = mailname
MSG. addrecipient (usermail) 'usermail is the recipient's mailbox
MSG. subject = "you registered" & sitename & "
MSG. body = username & ", hello! "& Clstr
MSG. body = MSG. body & "Congratulations! You registered successfully. Member ID:" & userid & ", Login Password:" & user_password & clstr
MSG. body = MSG. body & sitename & "(" & siteurl & ") welcome to join us! Thank you! "& Clstr
MSG. Send (MailServer)
MSG. Close
set MSG = nothing
%>

Configure the Member registration system to activate the email. If you are interested, try it.

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.