foreigner737
07-26-2009, 01:24 PM
Hi friends,
I am using the code below to send customers an e-mail after they have changed their password.
-------------------------
<%
Dim ObjSendMail
Set ObjSendMail = CreateObject("CDO.Message")
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") ="mail.example.com"
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = False
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1 'basic (clear-text) authentication
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusername") ="example@example.com" 'Definitely a different domain than it looks like here
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendpassword") ="password" 'Instead I have the real pass here
ObjSendMail.Configuration.Fields.Update
'End remote SMTP server configuration section==
ObjSendMail.To = "user@example.com"
ObjSendMail.Subject = "cdosys trial"
ObjSendMail.From = "admin@example.com"
ObjSendMail.TextBody = "Cdosys trial"
ObjSendMail.Send
Set ObjSendMail = Nothing
%>
-------------------------------------------------------
The page executes without problems and no error messages,
but the sender address (admin) receives an undeliverable message like this:
--------
Invalid final delivery userid: WebAdministrator@localhost
Original message follows.
Received: from SMTP32-FWD by example.com
(SMTP32) id A2AE2022D00005B6D; Sun, 26 Jul 2009 05:07:33 -0500
Received: from faberbd6156bbb [88.251.121.158] by netcfm.com with ESMTP
(SMTPD-8.22) id AAE4021C; Sun, 26 Jul 2009 05:07:32 -0500
Thread-Topic: cdosys trial with asp code
thread-index: AcoN2NO6R5HARLFTTWC3v2Y4g6qGgQ==
From: <admin@example.com>
To: <user@example.com>
Subject: cdosys trial
Date: Sun, 26 Jul 2009 13:07:04 +0300
Message-ID: <2C64447B818C448F8497A384C71EE70E@faberbd6156bbb>
MIME-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft CDO for Exchange 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
cdosys trial with asp code
:rolleyes:
--------------------------------------
Any info or comment why the e-mail can not be delivered?
My additional information:
1) I have standard install of IIS 5.1. SMTP component of IIS is installed.
2)Exited the Sygate firewall.
3)I’m not behind a proxy.
4)Upon an advice, I've made sure that I have set to perform a direct delivery before using the smart host.
Smtp properties --> Delivery tab - Advanced button
5) Do not take the text bodies into consideration, I have changed them a bit.
Any Info or comments are appreciated.
Thank you for your support.
I am using the code below to send customers an e-mail after they have changed their password.
-------------------------
<%
Dim ObjSendMail
Set ObjSendMail = CreateObject("CDO.Message")
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") ="mail.example.com"
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = False
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1 'basic (clear-text) authentication
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusername") ="example@example.com" 'Definitely a different domain than it looks like here
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendpassword") ="password" 'Instead I have the real pass here
ObjSendMail.Configuration.Fields.Update
'End remote SMTP server configuration section==
ObjSendMail.To = "user@example.com"
ObjSendMail.Subject = "cdosys trial"
ObjSendMail.From = "admin@example.com"
ObjSendMail.TextBody = "Cdosys trial"
ObjSendMail.Send
Set ObjSendMail = Nothing
%>
-------------------------------------------------------
The page executes without problems and no error messages,
but the sender address (admin) receives an undeliverable message like this:
--------
Invalid final delivery userid: WebAdministrator@localhost
Original message follows.
Received: from SMTP32-FWD by example.com
(SMTP32) id A2AE2022D00005B6D; Sun, 26 Jul 2009 05:07:33 -0500
Received: from faberbd6156bbb [88.251.121.158] by netcfm.com with ESMTP
(SMTPD-8.22) id AAE4021C; Sun, 26 Jul 2009 05:07:32 -0500
Thread-Topic: cdosys trial with asp code
thread-index: AcoN2NO6R5HARLFTTWC3v2Y4g6qGgQ==
From: <admin@example.com>
To: <user@example.com>
Subject: cdosys trial
Date: Sun, 26 Jul 2009 13:07:04 +0300
Message-ID: <2C64447B818C448F8497A384C71EE70E@faberbd6156bbb>
MIME-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft CDO for Exchange 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
cdosys trial with asp code
:rolleyes:
--------------------------------------
Any info or comment why the e-mail can not be delivered?
My additional information:
1) I have standard install of IIS 5.1. SMTP component of IIS is installed.
2)Exited the Sygate firewall.
3)I’m not behind a proxy.
4)Upon an advice, I've made sure that I have set to perform a direct delivery before using the smart host.
Smtp properties --> Delivery tab - Advanced button
5) Do not take the text bodies into consideration, I have changed them a bit.
Any Info or comments are appreciated.
Thank you for your support.