catalyst2 community forums  

Go Back   catalyst2 community forums > Support > Scripting Support

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 24-11-2007, 02:19 AM   #1 (permalink)
JASONOLDY69
 
Join Date: Dec 2004
Location: Lincolnshire, UK
Posts: 17
Send a message via MSN to jasonoldy69
CDO.Message Email problem

Hi guys,

struggling to make use of this email script. It returns an " error '8004020f' " and only lets me send emails to addresses under the visionary-3d.co.uk domain.

Code:
SET mail1 = Server.CreateObject("CDO.Message")

WITH mail1
   .From = "auto@visionary-3d.co.uk"
   .To = toEmail
   .Subject = "Subject"
   .HTMLBody = htmlBody
   .Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
   .Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "mail.visionary-3d.co.uk"
   .Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
   .Configuration.Fields.Update
   .SEND
END WITH
What can I do to make it send to email addresses under hotmail.com for example? Is it the mail server?

Thanks for your help!
__________________
Jason

Last edited by jasonoldy69; 24-11-2007 at 02:25 AM.
jasonoldy69 is offline   Reply With Quote
Old 24-11-2007, 11:52 AM   #2 (permalink)
Administrator
 
Jacob's Avatar
 
Join Date: May 2003
Posts: 1,299
Hi,

Please try setting the mail server to guava.catalyst2.com

Regards,

Jacob
Jacob is offline   Reply With Quote
Old 25-11-2007, 09:06 AM   #3 (permalink)
JASONOLDY69
 
Join Date: Dec 2004
Location: Lincolnshire, UK
Posts: 17
Send a message via MSN to jasonoldy69
Works brilliantly,

But curious to know why I'm not able to use my own mail server address?

Thanks anyway
__________________
Jason
jasonoldy69 is offline   Reply With Quote
Old 25-11-2007, 11:25 AM   #4 (permalink)
Administrator
 
Jacob's Avatar
 
Join Date: May 2003
Posts: 1,299
It is setup to reduce spam on our servers.

Regards,

Jacob
Jacob is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 12:17 PM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.