CDOSYS problem

This is a discussion on "CDOSYS problem" within the Classic ASP section. This forum, and the thread "CDOSYS problem are both part of the Program Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > Classic ASP

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Dec 13th, 2005, 11:18
New Member
Join Date: Dec 2005
Age: 34
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
CDOSYS problem

A couple of weeks ago our confirmation emails have stopped working. When I check the event log on our server and for each mail that is meant to be sent I get the following warning event :-

Message delivery to the remote domain <'mydomain.com'> failed. The error message is 'An SMTP protocol error occurred.
'. The SMTP verb which caused the error is 'RCPT'. The response from the remote server is '550-EHLO/HEL0 argument <(name of the machine)> must be a syntactically-valid
550 fully-qualified domain nam'.

Nothing has changed around this area so i'm not really sure why this problem started.

Any help would be appreciated.

Thanks

Last edited by Ranger; Dec 13th, 2005 at 11:22.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Dec 13th, 2005, 12:39
Rob's Avatar
Rob Rob is offline
Webforumz Founder
Join Date: Jul 2003
Location: Southern UK
Age: 34
Posts: 3,188
Blog Entries: 7
Thanks: 27
Thanked 23 Times in 20 Posts
Re: CDOSYS problem

I realise nothing has changed, but please post your code.
__________________
Click the 'Thanks!' button if this post has helped you

Rob - Webforumz Founder
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Dec 13th, 2005, 13:37
New Member
Join Date: Dec 2005
Age: 34
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CDOSYS problem

Hi - sorry, when i said nothing has changed I meant there has been no code changes. And there has been no code changes since i started working on this project.

Thanks

Here is the code :-

Code: Select all
Function MSCSExecute(config, orderform, context, flags)
 Dim iMsg, iConf, iFlds
 Dim item, bIsBookOrder
 
 Set iMsg = CreateObject("CDO.Message")
 Set iConf = CreateObject("CDO.Configuration")
 Set iFlds = iConf.Fields
 With iFlds
  .Item("http://schemas.microsoft.com/cdo/con...tion/sendusing") = 2 'cdoSendUsingPort
  .Item("http://schemas.microsoft.com/cdo/con...ion/smtpserver") = config.smtpserver
  .Item("http://schemas.microsoft.com/cdo/con...nectiontimeout") = 10
  .Item("http://schemas.microsoft.com/cdo/con...tpauthenticate") = 0 'cdoAnonymous
  .Item("http://schemas.microsoft.com/cdo/con...tlatestversion")   = True
  .Update
 End With
 
 With iMsg
  Set .Configuration = iConf
  .To = orderform.Value("user_email_address")
  .Cc = <***our email***>
  .From = <***our email***>
  .Subject = "New Order Confirmation"
  .TextBody = orderform.Value("_po_text")
  .Send
 End With
 Set iMsg = Nothing
 Set iConf = Nothing
 Set iFlds = Nothing
 
 MSCSExecute = 1
End Function
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Dec 13th, 2005, 15:30
Rob's Avatar
Rob Rob is offline
Webforumz Founder
Join Date: Jul 2003
Location: Southern UK
Age: 34
Posts: 3,188
Blog Entries: 7
Thanks: 27
Thanked 23 Times in 20 Posts
Re: CDOSYS problem

Hmmm.... maybe the machine has been patched recently and some settings have changed.....

Sometimes it is a requirement lately to make sure that the FROM address is an address on the websites domain AND actually exists..... maybe something you can look at.
__________________
Click the 'Thanks!' button if this post has helped you

Rob - Webforumz Founder
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Dec 13th, 2005, 15:40
New Member
Join Date: Dec 2005
Age: 34
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CDOSYS problem

Thats a possibility. I will have a look and post back on how I get on.

MMMMmm in fact not really sure how to do that as our web server is co-located and just on a workgoup and with a couple of users added to allow remote desktop in.

Funnily enough the current mail from address is from a user/domain on our network.

Thanks

Last edited by Ranger; Dec 13th, 2005 at 16:49.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Dec 20th, 2005, 09:14
New Member
Join Date: Dec 2005
Age: 34
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CDOSYS problem

Hi

Still having no luck finding any information on this subject. Does anybody have any suggestions to help.

Thanks.

FAO Rob - When you said the FROM address may have to be an address on the websites domain. No users have email addresses set up so i'm not really sure how to do that.

Cheers

Nickie
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Dec 20th, 2005, 10:31
New Member
Join Date: Dec 2005
Age: 34
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CDOSYS problem

Hi

I have found the 'Bad Mail' item in 'C:\Inetpub\mailroot\Badmail' and there is a tad more information in it.

Final-Recipient: rfc822;me@mydomain.com
Action: failed
Status: 5.0.0
Diagnostic-Code: smtp;550-EHLO/HEL0 argument (<mywebserverdomain>) must be a syntactically-valid
550 fully-qualified domain name or address literal

Not actually sure what 'rfc822' is in the line 'Final-Recipient:'

Cheers
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Dec 20th, 2005, 19:57
Rob's Avatar
Rob Rob is offline
Webforumz Founder
Join Date: Jul 2003
Location: Southern UK
Age: 34
Posts: 3,188
Blog Entries: 7
Thanks: 27
Thanked 23 Times in 20 Posts
Re: CDOSYS problem

Quote:
Originally Posted by Ranger
Hi

I have found the 'Bad Mail' item in 'C:\Inetpub\mailroot\Badmail' and there is a tad more information in it.

Final-Recipient: rfc822;me@mydomain.com
Action: failed
Status: 5.0.0
Diagnostic-Code: smtp;550-EHLO/HEL0 argument (<mywebserverdomain>) must be a syntactically-valid
550 fully-qualified domain name or address literal

Not actually sure what 'rfc822' is in the line 'Final-Recipient:'

Cheers
So... I was right then
__________________
Click the 'Thanks!' button if this post has helped you

Rob - Webforumz Founder
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Dec 21st, 2005, 09:09
New Member
Join Date: Dec 2005
Age: 34
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CDOSYS problem

OK - fixed it last night.

The problem was that when sending a text e-mail using a 'remote server' the
smtpserver field in the configuration object needs to point to a domain which is the same as whats in the FROM address. The only thing i cant work out is why it stopped working on our web server as no settings or code was changed but the IP address being used was that of our web server. So i changed this to point to our exchange server (on a different location/network) and it worked.

Thank god for that as I didn't want to worry about that over the festivities.

Cheers
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
cdosys, problem

Thread Tools

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
First image problem and inline list problem konnor5092 Web Page Design 8 Dec 1st, 2007 09:08
Having Problems with cdosys emails Phil Classic ASP 1 Sep 12th, 2007 17:23
Creating a contact form on homepage with ASP & CDOSYS? Foobster Classic ASP 0 Aug 14th, 2007 09:01
CDOSYS Mail marcuscoker Classic ASP 2 Mar 17th, 2006 06:03
CDOSYS AndyP Hosting & Domains 2 Sep 7th, 2005 12:15


All times are GMT. The time now is 13:46.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42