Portal Home > Knowledgebase > ASP programming > How to use CDOSYS Email?

How to use CDOSYS Email?

Use following code for CDOSYS Email componets.
Set cdoConfig = Server.CreateObject("CDO.Configuration")
cdoConfig.Fields.Item(sch & "sendusing") = 2
cdoConfig.Fields.Item(sch & "smtpserver") = "mail.yourdomain.com"
Set cdoMessage = Server.CreateObject("CDO.Message")
Set cdoMessage.Configuration = cdoConfig
cdoMessage.From = test@yourdomain.com
cdoMessage.To = "test@medomain.com"
cdoMessage.cc = "test@otherdomain.com"
cdoMessage.Subject = "enquiry form CDOSYS componets"
cdoMessage.HTMLBody = "your text"
Set cdoMessage = Nothing
Set cdoConfig = Nothing
response.redirect= "http://www.yourdomain.com"

Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
How to use ASP Email? (Views: 220)
How to use Jmail ? (Views: 260)

Powered by WHMCompleteSolution