Support - Knowledge base

Giving you the answers you need

Why not try our knowledge base for instant help and advice to enhance your online experience with Register365? From within the knowledge base you can browse our frequently asked questions and find the right answers to help solve your queries.

Home  >  Scripting  >  ASP (Active Server Pages)  >  View Article

Example working CDOSYS script

2*2*2*2*2*

Article

<% 
' EXAMPLE SCRIPT TO SEND MAIL USING CDOSYS 
Set oCdoMail = Server.CreateObject("CDO.Message") 
Set oCdoConf = Server.CreateObject("CDO.Configuration") 
sConfURL = "http://schemas.microsoft.com/cdo/configuration/" 
with oCdoMail 
.From = "web@domain.com" 
.To = "user@domain.com" 
end with  
with oCdoMail 
.Subject = "My message subject" 
.TextBody = "This is a plain text email" 
end with  
oCdoMail.Configuration = oCdoConf 
oCdoMail.Send 
Set oCdoConf = Nothing  
Set oCdoMail = Nothing  
%>

Rate This Article

How useful was this article?

Not useful A little useful Useful Very useful Everything I needed