Go Back   Web Hosting UK Forums | Linux Windows Dedicated Server and cPanel VPS Hosting Forum > Services > Web Designing and Development

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-23-2007, 11:53 AM
new member
 
Join Date: Apr 2007
Posts: 2
Default CDOSYS problem

Hi,


I'm having problems using CDO on an ASP page where I;m tring to send an email, usually getting the error message "The "SendUsing" configuration value is invalid."

Code:
Set ObjSendMail = Server.CreateObject("CDO.Message")
ObjSendMail.SmtpServer = "mail.mydomain.com"
     
ObjSendMail.To = "someone@hotmail.com"
ObjSendMail.Subject = "this is the subject"
ObjSendMail.From = "admin@mydomain.com"
ObjSendMail.TextBody = "this is the body"
ObjSendMail.Send
Set ObjSendMail = Nothing
And wondered if anyone has a sample 'working' script or knows if there's something I need to set in the control panel (I have set up a mailbox for 'admin'

Thanks
Reply With Quote
Reply

Thread Tools
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 On
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:15 PM.
Copyright 2002-2007 WebHosting.uk.com. All rights reserved.
Web Hosting UK Forum