A
andre.manhaes
Hi Everybody,
I'm struggling over a migration from IIS 6.0/Windows Server 2003 to IIS 7.0/Windows Server 2008 because a classic ASP application isn't working as expected. The problem is when I try to send an email on Windows 2003 using CDOit does it, but running the code on Windows 2008 I got an exception.The following is a piece of code causing the issue:
Set cdo = Server.CreateObject("CDO.Configuration")
...
...
cdoMessage.From = "<email>"
cdoMessage.To = "email_without_at_or_<>"
cdoMessage.Subject = Subject
cdoMessage.HTMLBody = HTMLContent
cdoMessage.AutoGenerateTextBody = false
cdoMessage.TextBody = Menstxt
....
....
objMessage.Send 'line where's a exception is throw on Windows 2008
On Windows 2003/IIS 6.0, the application work well even though cdo.Message.To isnt following either the format with enclosures <> or @ followed by a domain, for instance the code works well with cdo.Message.To = "jhf" (for smtp server locally makes sense that email 'jhf', even though without @mydomain.com).
Using the same code on Windows 2008/IIS 7.0 I get a exception saying "At least one recipient is required, but none were found", CODE: 8004020C.
Does somene get through similar issue? Is there any configuration to make CDO to stop the verification to the TO field ?
In my case I cannot change the code because is a legacy application and I'mfrom the infrastructue team.
Thanks all,
André
I'm struggling over a migration from IIS 6.0/Windows Server 2003 to IIS 7.0/Windows Server 2008 because a classic ASP application isn't working as expected. The problem is when I try to send an email on Windows 2003 using CDOit does it, but running the code on Windows 2008 I got an exception.The following is a piece of code causing the issue:
Set cdo = Server.CreateObject("CDO.Configuration")
...
...
cdoMessage.From = "<email>"
cdoMessage.To = "email_without_at_or_<>"
cdoMessage.Subject = Subject
cdoMessage.HTMLBody = HTMLContent
cdoMessage.AutoGenerateTextBody = false
cdoMessage.TextBody = Menstxt
....
....
objMessage.Send 'line where's a exception is throw on Windows 2008
On Windows 2003/IIS 6.0, the application work well even though cdo.Message.To isnt following either the format with enclosures <> or @ followed by a domain, for instance the code works well with cdo.Message.To = "jhf" (for smtp server locally makes sense that email 'jhf', even though without @mydomain.com).
Using the same code on Windows 2008/IIS 7.0 I get a exception saying "At least one recipient is required, but none were found", CODE: 8004020C.
Does somene get through similar issue? Is there any configuration to make CDO to stop the verification to the TO field ?
In my case I cannot change the code because is a legacy application and I'mfrom the infrastructue team.
Thanks all,
André