Solved

Sending e-mail with ASP

Posted on 1999-01-05
6
222 Views
Last Modified: 2013-12-25
Is it possible to send e-mail via ASP code? And if so, HOW?
0
Comment
Question by:MHQ
6 Comments
 
LVL 3

Author Comment

by:MHQ
ID: 1857722
Edited text of question
0
 
LVL 6

Expert Comment

by:PBall
ID: 1857723
There are tons of third party stmp mailer out there that you can choose from.  Some are free and some are not.

I use CDO/NTS that comes as part of IIS4.  It's free and flexible enough for my purposes.

Some other ASP mailer components are:
JMail from dimac (www.dimac.se) free
ASPMail / ASPQMail (www.serverobjects.com or  www.genusa.com/asp) commercial/shareware
And some others like OCXMail, etc. etc. (try looking for it at www.asphole.com, www.activeserverpages.com, etc.)

Most of the sites will have somekind of a sample code on how to use the mailer object.

IIS4 CDO/NTS documentation comes with...IIS4 (heh no surprise), you might want to take a peek at Professional ASP 2.0 from WROX (book).  They have some good sample on how to use CDO/NTS object.  Too bad they didn't really go into much about configuring the SMTP server which from what I've seen so far is the major hurdle in the process.

Somebody asked how to setup IIS4 SMTP server somewhere in this category or some other like HTML/JavaScript, look it up there.

0
 

Accepted Solution

by:
Bocian earned 100 total points
ID: 1857724
Try this:

  Set myMail = CreateObject("CDONTS.NewMail")
  myMail.From = "mymail@blabla.com"
  myMail.To = "fantomas@bleble.com"
  myMail.Subject = "WOW!"
  myMail.Body = "My first ASP mail!"
  myMail.Send
  Set myMail = Nothing

0
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
LVL 3

Author Comment

by:MHQ
ID: 1857725
Bocian-->

What kind of software do I need to have installed to get our code to work?
0
 
LVL 10

Expert Comment

by:MasseyM
ID: 1857726
CDO does not work very well.  I recommend you use a product from www.dimac.net.  It is free to use and keep.  Check it out.  It is VERY simple to implement and use.  They have some samples too.
0
 

Expert Comment

by:gwoudstra
ID: 1857727
If you have installed NT4 servicepack 3, you allready have all you need. With the management console you can start and stop your SMTP service.

The method described by Bocian works properly and can be used very flexible with attachments and database driven adresses. But the process is a bit cumbersome and SMTP is slow. For larger number of receivers I recommend using blind carbon copies. This can be done like this:
myMail.bcc = "receiver1@bleble.com, receiver2@bleble.com"
 
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Web Reply Form - PHP with Upload 4 70
stop navigation from wrapping 7 81
PHP Form Calculate Total Price 10 43
Downside of adding characters set in ASP pages 6 23
Learn by example how to specify CSS selectors for Selenium WebDriver test automation software.
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
The viewer will learn how to dynamically set the form action using jQuery.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question