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/