If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Need help sending email with cdo

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-06-09, 04:22
SoftwareMatters SoftwareMatters is offline
Registered User
 
Join Date: Mar 2009
Location: Dorset
Posts: 78
Need help sending email with cdo

Hi,
I am trying to send emails from my asp page with cdo but keep getting the following error:

An error occurred on the server when processing the URL. Please contact the system administrator.

The host of the website is btconnect and i have phoned them to check the server settings which they say are correct. My code is as follows:

Code:
Set oMail = Server.CreateObject("CDO.Message")
	Set iConf = Server.CreateObject("CDO.Configuration")
	Set Flds = iConf.Fields
	iConf.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = cdoSendUsingPort 
	iConf.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "mail.btconnect.com"
	iConf.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 10
	iConf.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25

	iConf.Fields.Update
	Set oMail.Configuration = iConf
	oMail.To 		= "kudutravel@btconnect.com"
	oMail.From 		= "kudutravel@btconnect.com"
	oMail.Subject 		= "Test"
	oMail.HTMLBody 		= "Test Message" 
	
	oMail.Send
	Set iConf = Nothing
	Set Flds = Nothing
Any help or advice would be appreciated

Regards
JD
__________________
Regards
JD

Bespoke Access Database Design and Development Services
Software Matters - Simple Solutions That Work!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On