Programming Tutorials Browser Tutorials Articles Struts Tutorials Hibernate Tutorials

  Tutorial: ASP Email Systems Sending eMail in ASP (CDONTS) Tutorial

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



Your mail:





Recipient:





Subject:





Msg:














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:

Use Microsoft's Internet Information Server as a Java servlet engine - JavaWorld June 2000
Use Microsoft's Internet Information Server as a Java servlet engine - JavaWorld June 2000
 
Sockets programming in Java: A tutorial - JavaWorld December 1996
Sockets programming in Java: A tutorial - JavaWorld December 1996
 
Design for performance, Part 3: Remote interfaces - JavaWorld March 2001
Design for performance, Part 3: Remote interfaces - JavaWorld March 2001
 
JavaMail quick start
JavaMail quick start
 
Create email-based apps with JAMES
Create email-based apps with JAMES
 
Test email components in your software
Test email components in your software
 
g4j - GMail API for Java
GMailer API for Java (g4j) is set of API that allows Java programmer to communicate to GMail. With G4J programmers can made Java based application that based on huge storage of GMail.
 
Reporting Application Errors by Email
Reporting Application Errors by Email It is common practice for server-side applications to log messages to files on the server's file system. These logs are a vital source of information for system administrators and the application development team. If
 
HA-JavaMail: High-Availability JavaMail
HA-JavaMail: High-Availability JavaMail Introduction HA-JavaMail is a JavaMail transport proxy that adds efficiency and reliability to an underlying JavaMail provider. HA-JavaMail is NOT an SMTP implementation - it's a wrapper around an existing imp
 
Building Java Server Pages
A detailed look at building JSP pages. Should you use JSP or servlets? It mainly depends on the ratio of markup to code. Here you'll also find a guide to the different varieties of tag, and details about the main tags such as and  
Tutorial for Developing your first JSPs tags
We have seen how servlets and JSPs can be used to build a web application. These technologies go some distance toward making web development easier, but do not yet facilitate the separation of Java from HTML in a reusable way. Custom tags make this possib
 
Getting Started with Java Message Service (JMS)
The Java Message Service (JMS) is designed to allow Java applications to use enterprise messaging systems. It makes it easy to develop enterprise applications that asynchronously send and receive business data and events. Learn how to implement it for you
 

Linux Hosting Plans Proxima Web-Hosting Our basic hosting packages include support for a wide variety of web technologies, backed by instant account management with our Personal Control panel. With our guaranteed
 
Submit a Request for a Project to be done
Submit a Request for a Project to be done Fill this form to Submit a Request for a Project to be done. User's Personal Details Name : Address: Email: Project Name: Project Description Language to be used: Delivery Date:
 
Your suggestions
Your suggestions Use the form on this page to tell us your ideas for enhancing our products, or improving our customer service, or anything else that comes to mind. Subject: Suggestion: Your name: Your Email:
 
What is WAP? Detailed discussion of WAP API with examples.
What is WAP? Detailed discussion of WAP API with examples. Learn WAP in 60 minutes W ireless Application Protocol or WAP for short, allows the developers to develop next generation web application for cellular devices. Through WAP enabled mobile
 
What is Web Hosting
What is Web Hosting What is Web Hosting? What is Web Hosting? If you have a company and want web presence than you need a website. With the website any one from the world must be able to view your pages, images etc. Website is actually a
 
A Practical Roadmap for Deploying Enterprise Web Applications: Taking the First Step
This article covers important decision points around the availability, scalability, and security that are needed for enterprise web applications.
 
Sun Software Express Program Revamps
The Software Express Program, which offers previews of the Solaris OS under development, is in transition due to the recent release of the Solaris 10 OS.
 
Integrating Java Open Single Sign-On in Pluto
This article shows how to integrate Java Open Single Sign-On in Apache\'s Pluto portlet container.
 
Site navigation
 

 

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2006. All rights reserved.