This shows the basics of sending email using CDONTS. Example included.
Tutorial Details:
Toxiclab.org - Asp - Sending eMail in ASP (CDONTS), ASP Web Based Email Using CDONTS
Sending eMail in ASP (CDONTS)
14.12.2005, 13:27
Submited in: Asp | Total Views: 1335
In this tutorial I'll show how to send mail with CDO (Collaboration Data Objects).
Here?s a simple form and it?s associated ASP page to send the email:
form.html
Mail example
sendmail.asp
Sending mail
<%
'Dimension variables
Dim Mail
Dim MailFrom
Dim MailTo
Dim MailSubject
Dim MailContent
MailFrom = Request.Form("from")
MailTo = Request.Form("to")
MailSubject = Request.Form("subject")
MailContent = Request.Form("content")
'E-mail server object
Set Mail = Server.CreateObject("CDONTS.NewMail")
With Mail
'Who the e-mail is from
.From = MailFrom
'Who the e-mail is sent to
.To = MailTo
'Subject of the mail
.Subject = MailSubject
'Mail body format 0=html 1=text
.BodyFormat = 0
'Mail format (0=MIME 1=Text)
.MailFormat = 0
'Content of the email
.Body = MailContent
'Importance (0=Low 1=Normal 2=High)
.Importance = 1
.Send
End With
'Close the server object
Set Mail = Nothing
%>
Download example (1 KB)
yoosha says on 22.02.2006 11:39:15
hi... very good..but i cant send email to Yahoo!?? very tnx
T.Prasanna says on 22.02.2006 08:32:39
Respected sir, While I execute this program in my system, I got the error message Permission Denied on line no. 47 in sendmail.asp, Please reply me sir.
Mark says on 15.02.2006 11:00:41
Thats Cool
Add a comment
Name:
Web:
Email:
Comment:
Photoshop
Total tutorials: 12
JavaScript
Total tutorials: 1
Flash
Total tutorials: 24
Css & XHTML
Total tutorials: 2
Asp
Total tutorials: 5
3D
Total tutorials: 6
Meet The Google Guys
13.2.2006, 20:32
great inerview @ time.com
Happy Hollidays
24.12.2005, 16:52
Merry Christmas and happy New Year wish you Toxiclab team
Toxiclab is online
21.12.2005, 15:2
Toxiclab is up and running. If you found any errors please contact us.
News archive
Trace Bitmap
Added: 24.12.2005, 16:41
Total views: 6609
mcville
16.2.2006, 22:43
PureVolume
4.2.2006, 17:47
Pixelpusher
4.2.2006, 17:35
Sandwich Project
4.2.2006, 11:21
C404
4.2.2006, 11:5
Browse Links - Submit your site
CSS Rebot
The CSS Reboot is a community event for web professionals. May 1st, 2006 at 6:00 GMT Rebooters from all over the world will launch their web standards-based redesigns simultaneously, bringing traffic, interest and a little respect to their sites.
Submit site
ShakiraInfo.net
Shakira lyrics, pictures, biography, discography and downloads.
MySpace Games
Adds 1000s of games to your myspace profile
Link us back
Copyright © 2003-2006 Toxiclab.org and the authors
Site map Privacy Policy Contact There are 59 users online now!
Read
Tutorial at: Click here to view the tutorial
Rate Tutorial: ASP Email Systems Sending eMail in ASP (CDONTS) Tutorial
View Tutorial: ASP Email Systems Sending eMail in ASP (CDONTS) Tutorial
Related
Tutorials:
|
Displaying 1 - 50 of about 2073 Related Tutorials.
|
VB and ASP programmers
VB and ASP programmers
VB and ASP programmers...;
Position Vacant:
VB and ASP programmers
Job Description
Visual basic programmer with ASP knowledge to develop |
jQuery to validate Email Address
;
In this jQuery tutorial we will develop a program that validate
the email...
jQuery to validate Email
Address
 ... easily replace PHP with JSP, or ASP program.
Steps to develop the program |
Sending Email with Attachment
Sending Email with Attachment
Sending Email with Attachment
 ....
By this code you can get functionality to send Email with a attached
text file, zip |
Create your Email Server by PHP
Create your Email Server by PHP
Create your Email...;
Create your Email Server by PHP
(Learn to Create your Email Server.)
Create your Email Server
Whenever we develop an email system, we can |
Work Email- Dos and Don?ts
email that you are sending the attachment and also add the software, year/ version... employers ask you to paste your resume to the body of the email and avoid sending... objectively. Avoid sending an email when you are upset or angry.
What if You Get |
How does Email works
How does Email works
How does Email works
 ... email Server, when a user sends an Email…
Email client Program sends |
PHP : Form to Email
PHP Form to Email
PHP : Form to Email
 ...;
With the help of this tutorial you can send mails to a user using a form, as
we have discussed in our earlier tutorial, it is very easy to send mails using
PHP |
Vehicle Tracking Systems - Overview
Tracking systems often have several alternatives, like sending automatic alerts...
Vehicle Tracking Systems,Tracking Vehicles,Tracking Systems
Vehicle Tracking Systems - Overview
  |
Online Marketing and Email Campaign
Online Marketing and Email Campaign
Online Marketing and Email Campaign
 ... and Email
Campaign
Job Description
Your |
Email validation is JSP using JavaScript
Email validation is JSP using JavaScript
Email... this example we will show you how to validate email address in you JSP
program using JavaScript.
In most of the application there is a need to validate email |
What is POP?
for communication in the form of email. Email is the
most wanted service over internet...; a special language for sending and receiving
mail that is known as POP. POP ... that allows the computer to communicate the email server for
uploading and  |
Open Source Email Servers written in Java
|
Open Source Email Servers written in Java
|
Send E-mail in HTML
;
The Tutorial describes you a code that help you to send Email in HTML. In
this Tutorial, the code create...
Send Email in HTML
|
|