Solved

Sending e-mail with ASP

Posted on 1999-01-05
6
217 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
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
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…
This video teaches users how to migrate an existing Wordpress website to a new domain.

757 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now