PDA

Click to See Complete Forum and Search --> : Sending EMail with ASP


dmartin17
Feb 27th, 2001, 02:46 PM
Is there a way to have a asp webpage take information from the page and send an email?

thanks

Feb 27th, 2001, 03:26 PM
I normally use the JMail component to do that.

Feb 27th, 2001, 03:46 PM
can you say more about that.

Kagey
Feb 27th, 2001, 05:23 PM
try this. if you are running iis then it should work.

<%
Dim objCDO
Set objCDO = Server.CreateObject("CDONTS.NewMail")

objCDO.To = "kagey@kagey.com"
objCDO.From = "dmartin@hotmail.com"
objCDO.Importance = 1 '0 - Low, 1 - Normal, 2 - High
objCDO.Subject = "Hello there"
objCDO.AttachFile ("c:\MyPictures\new.jpg","new.jpg")
objCDO.Body = "Hey buddy, whats up for the weekend"
objCDO.Send

Set objCDO = NOTHING
%>