ASP Send e-mail

Source: Internet
Author: User
Tags mail
If you want to send e-mail with ASP, you need to install a part a S p. There are several third-party vendor parts that you can use. But under IIS4, you can use CDONTS.

Although the name is strange, it is very easy to use and good performance. If you want to use it, follow the steps below.

1. Check to see if you have an SMTP service installed. OPTION Pack The default installation is to include the SMTP service.

After the SMTP service is installed, there will be a file called CDONTS.DLL in your system32 directory.

2. You can use the following simple script to send e-mail via a p:

  

  $#@60;%

Dim Mailobject

Set mailobject = Server.CreateObject ("CDONTS. NewMail ")

Mailobject.send "stelede@ozemail.com.au", "stelede@ozemail.com.au", " My subject", "My Text"

  %$#@62;

Is it simple?

Send Attachments

A common feature of CDONTS is to send attachments in an e-mail message. Code is not difficult to write.

  $#@60;%

Dim Mailobject

Set mailobject = Server.CreateObject ("CDONTS. NewMail ")

Att_file= "C:\attachments\StandardPolicy.txt"

F_name= "Policy.txt"

mailobject.from= "stelede@ozemail.com.au"

mailobject.to= "j_smith@zentus.com"

mailobject.subject= "Subject Text Here"

mailobject.body= "Body Text Here"

Mailobject.attachfile Att_file,f_name

Mailobject.send
%$#@62;

Third-Party Vendor parts

If you are not satisfied with the CDONTS, the following address list is a Third-party vendor component that you can find (most of which you will need to pay to buy)

Blat- http://gepasi.dbs.aber.ac.uk/softw/Blat.html

Try looking through: http://www.15seconds.com/



Related Article

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.