Sending mail from an asp page (VBScript)

Can someone give me a script (VBScript) to sendmail
from an asp page?  thanks!
LVL 1
denamAsked:
Who is Participating?
 
MasseyMCommented:
JMail also has some of the best support.  I emailed them with my source and we had it fixed within the hour.
0
 
changgCommented:
Hi,

You can use the Collaboration Data Objects that comes with IIS 4 to send mail.

Here is an example function that I use, However you will need to install and configure the SMTP service for IIS4.


Sub CDOSendMail(strMessageFrom, strMessageTo, strMessageSubject, strMessageBody)
      Dim cdoMail

      Set cdoMail= Server.CreateObject("CDONTS.NewMAIL")
      
      cdoMail.Send strMessageFrom, strMessageTo, strMessageSubject, strMessageBody
        
      If Not cdoMail Is Nothing Then
      Set cdoMail = Nothing
      End If
End Sub

There are also many third party components that you can use from asp. One such component I use is AspMail. You can find it at www.serverobjects.com

Hope this helps,

Garett
0
 
MasseyMCommented:
I use JMail whenever I can.  It comes from www.dimac.net   It is the BEST overall emailer I have found to date.  Far surpasses ASPMail, and best of all, it is free :) Yeah!

CDO NTS will not work unless you have both the SMTP service and IIS installed on the same machine and most ISP's do not have them setup that way.
0
Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

 
denamAuthor Commented:
Massey, JMail looks like a pretty good product, but there's almost no documentation
with it.  

Dena
0
 
denamAuthor Commented:
I found the documentation for JMail...it does look like the right solution for me.
Thanks.  

Dena
0
 
denamAuthor Commented:
Thanks both of you.
0
 
denamAuthor Commented:
Massey, you've saved a newbie once again.  thx.

Dena
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.