Solved

Sending e-mail with ASP

Posted on 1999-01-05
6
226 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
The New “Normal” in Modern Enterprise Operations

DevOps for the modern enterprise offers many benefits — increased agility, productivity, and more, but digital transformation isn’t easy, especially if you’re not addressing the right issues. Register for the webinar to dive into the “new normal” for enterprise modern ops.

 
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

828 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