Sending email from asp pages

This portion goes into the header portion of the page before the  tag.  

(Just remove the space from between the < and the ! in the next line)

< !--
    METADATA
    TYPE="typelib"
    UUID="CD000000-8B95-11D1-82DB-00C04FB1625D"  
    NAME="CDO for Windows 2000 Library"
-->  "

 

 This portion can go anywhere in the page normally this is placed in the area if it is a post back to itself. else it can go into the body of the page.

(Just remove the space from between the < and the ! in the next line)
< !--r> /        Set cdoConfig = CreateObject("CDO.Configuration")  
   
       With cdoConfig.Fields  
           .Item(cdoSendUsingMethod) = cdoSendUsingPort  
           .Item(cdoSMTPServer) = "smtp.yourdomain.co.za"  
           .Item(cdoSMTPAuthenticate) = 1  
           .Item(cdoSendUsername) = "AValidUser@yourdomain.co.za"  
           .Item(cdoSendPassword) = "aPassword"  
           .Update  
       End With
   
       Set cdoMessage = CreateObject("CDO.Message")  
           
       With cdoMessage
           Set .Configuration = cdoConfig
           .From = "someone@someplace.co.za"
           .To = "keith@hostworx.co.za"
           .Subject = "Some subject"
           .HTMLBody = "html body text"
           .Send
       End With
       Set cdoMessage = Nothing  
       Set cdoConfig = Nothing  

   
-->

  • 26 Users Found This Useful
Was this answer helpful?

Related Articles

Sending email from ASP.Net

Sending E-mails from ASP.NetStep 1: Place the following in your web.config file, making sure to...

Sending mail with Joomla websites

1. Enter your Joomla dashboard. 2. Click on "Site", "Global configuration". 3. Choose the...

Sending smtp mail with wordpress

We do not allow any mails to be relayed without first authenticating to our mail servers,...

Sending emails from a website using ASP

Please use the following ASP code to send e-mails, note that our mail servers require SMTP...

Sending Email from PHP

Sending E-mail from PHP For Sending external emails from websites to to domains that do not...