ISSUE :
 
Profile photo
Submitted by G-Stone
on May 22nd, 2011 at 08:44:23 EST

Send email in classic ASP

I am updating some code with classic ASP. And new requirement is to send email on certain events. What is the best way to send email notification using classic ASP? Do I need to get any 3rd party component?


Profile photo
Replied by RaKumar
on May 22nd, 2011 at 12:13:12 EST
You can use CDOSYS object to send email using Classic ASP. CDOSYS component replaces old CDONTS component. CDOSYS is build-in component of ASP.

For example:
<%
Set mailObj=CreateObject("CDO.Message")
mailObj.Subject="Test email"
mailObj.From="me@mydomain.com"
mailObj.To="someone@somedomain.com"
mailObj.TextBody="Test message."
mailObj.Send
set mailObj=nothing
%>
Accepted Answer
Accepted
 Answer

Profile photo
Replied by G-Stone
on May 22nd, 2011 at 12:24:17 EST
thanks. awesome !