Working with classic ASP on Windows Server 2003 IIS6
I'm receiving two mails instead of the only one I expected. The other
is a blank email.

I'm using the next lines and they work fine:

Set iConf = CreateObject("CDO.Configuration")
With iConf
.Fields.Item(cdoSendUsingMethod) = cdoSendUsingPort
.Fields.Item(cdoSMTPServer) = "server.name" ' example
.Fields.Update
End With

Set iMsg = CreateObject("CDO.Message")
With iMsg
Set .Configuration = iConf
.To = "...@..."
.From = "...@..."
.Subject = "some subject"
.TextBody = "some text"
.Send
End With

Set iConf = Nothing
Set iMsg = Nothing


But I can figure out yet how I must configure this to avoid the extra
email.
Thanks in advance

Re: CDO.Message two emails instead of one by Anthony

Anthony
Fri Sep 15 02:15:30 CDT 2006


"flagpointer" <ginares@gmail.com> wrote in message
news:1158270280.533518.17780@i3g2000cwc.googlegroups.com...
> Working with classic ASP on Windows Server 2003 IIS6
> I'm receiving two mails instead of the only one I expected. The other
> is a blank email.
>
> I'm using the next lines and they work fine:
>
> Set iConf = CreateObject("CDO.Configuration")
> With iConf
> .Fields.Item(cdoSendUsingMethod) = cdoSendUsingPort
> .Fields.Item(cdoSMTPServer) = "server.name" ' example
> .Fields.Update
> End With
>
> Set iMsg = CreateObject("CDO.Message")
> With iMsg
> Set .Configuration = iConf
> .To = "...@..."
> .From = "...@..."
> .Subject = "some subject"
> .TextBody = "some text"
> .Send
> End With
>
> Set iConf = Nothing
> Set iMsg = Nothing
>
>
> But I can figure out yet how I must configure this to avoid the extra
> email.

Can't see how this code would deliver two emails. First thing to check is
that it really is creating two mails and not something else along the line.
Pick on a machine which has IIS installed with a default SMTP server.
Change the mail domain of the 'To' address to the FQDN of the target PC
(even an XP machine with IIS installed would do). You might need to modify
the properties of the target SMTP service to allow relay from the IP address
of your web server.

Once that is done and you've run the page check the contents of the target
machine's c:\inetpub\mailroot\drop folder. It should only have one EML
file for your email.


> Thanks in advance
>



Re: CDO.Message two emails instead of one by Jason

Jason
Fri Sep 15 07:42:34 CDT 2006

theres no way the code is generating 2 emails.
there is something going on with the underlying email system. maybe your
smtp server is doing something odd




"flagpointer" <ginares@gmail.com> wrote in message
news:1158270280.533518.17780@i3g2000cwc.googlegroups.com...
> Working with classic ASP on Windows Server 2003 IIS6
> I'm receiving two mails instead of the only one I expected. The other
> is a blank email.
>
> I'm using the next lines and they work fine:
>
> Set iConf = CreateObject("CDO.Configuration")
> With iConf
> .Fields.Item(cdoSendUsingMethod) = cdoSendUsingPort
> .Fields.Item(cdoSMTPServer) = "server.name" ' example
> .Fields.Update
> End With
>
> Set iMsg = CreateObject("CDO.Message")
> With iMsg
> Set .Configuration = iConf
> .To = "...@..."
> .From = "...@..."
> .Subject = "some subject"
> .TextBody = "some text"
> .Send
> End With
>
> Set iConf = Nothing
> Set iMsg = Nothing
>
>
> But I can figure out yet how I must configure this to avoid the extra
> email.
> Thanks in advance
>