|
| |
|
|
Gite
Posts: 5 Joined: 10/16/2004 Status: offline
|
SMTP problem - 10/17/2004 14:49:26
I have an ASP application that sometimes have to send messages to its users. The messages go to the IIS 5 default server but stay in the 'Queue' directory. They are never delivered to any user. I'm one of the users and I checked that I receive my other emails. I even sent myself emails using Outlook to make sure of it. However, when I check my log, I find, for the messages sent by my application, that my "message could not be given to my email domain because the remote host interrupted the connection" I have a D-Link D714P+ router in which I made no special setting. Any idea for a solution? Thanks
|
|
|
|
Giomanach
Posts: 6091 Joined: 11/19/2003 From: England Status: offline
|
RE: SMTP problem - 10/18/2004 13:46:11
Gite Welcome To Outfront First of all, I would check the SMTP settings of the server, and check the validility of the email address being used to send the emails from. It may be something simple like restart IIS 5, but I would check all SMTP settings on the server first HTH
_____________________________
|
|
|
|
Gite
Posts: 5 Joined: 10/16/2004 Status: offline
|
RE: SMTP problem - 10/18/2004 14:20:44
Thank you for your attention I stopped and restarted IIS and the SMTP server many times before posting my question and it did not solve the problem The ASP code is as follows (I use JMail): Set Mail = Server.CreateObject("JMail.Message") Mail.From="myname@mydomain.com" Mail.FromName="myname" Mail.AddRecipient Session("user email address") Mail.Subject = "bla bla" Mail.HTMLBody= sMsg Mail.Send ("myIPaddress") Set Mail = Nothing IIS is installed on Windows XP Pro and the default SMTP server has the following main parameters: General: my IP address, port 25, 1 domain named DELL Access: Anonymous, connexion= only my pc and my router IPs Relay: only my pc and my router IPs Delivery: outbound security=anonymous, outbound connexions port=25 LDAP Routing: None I tested my application with my own email address in the from and to fields of the email to be sure the email addresses were not the problem. I even declared my pc in the demilitarized zone of my router (and used the windows xp firewall instead) to eliminate the problem that might come from my router's firewall. The problem remained there. So, any idea as to what went wrong
|
|
|
|
Giomanach
Posts: 6091 Joined: 11/19/2003 From: England Status: offline
|
RE: SMTP problem - 10/18/2004 14:39:20
quote:
Set Mail = Server.CreateObject("JMail.Message") Mail.From="myname@mydomain.com" Mail.FromName="myname" Mail.AddRecipient Session("user email address") Mail.Subject = "bla bla" Mail.HTMLBody= sMsg Mail.Send ("myIPaddress") Set Mail = Nothing Can I see the rest of the ASP program, and in full (you may remove the from address), Just want to see how your calling the addresses etc. Do you have XPSP2 installed? Any Symantec products installed? (Norton)
_____________________________
|
|
|
|
Gite
Posts: 5 Joined: 10/16/2004 Status: offline
|
RE: SMTP problem - 10/18/2004 14:54:58
I took car not to install XPSP2 and I'm very happy I did so. I Have Norton antivirus 2004 and systemworks 2002. I do not have its firewall nor internet security. Here is the code for the test with my address as from and to addresses Set Mail = Server.CreateObject("JMail.Message") Mail.Logging=true Mail.From = "myname@personaldomain.com" Mail.FromName = "myname" Mail.AddRecipient Session("myname@personaldomain.com") Mail.Subject = sujet Mail.HTMLBody= sMsg On Error Resume Next Mail.Send ("123.456.789.189") Mail.Send (Application("sMailHost")) If Err <> 0 Then Response.Write Err.Number & Err.Description End If Set Mail = Nothing
|
|
|
|
Giomanach
Posts: 6091 Joined: 11/19/2003 From: England Status: offline
|
RE: SMTP problem - 10/18/2004 15:03:00
Try disabling Norton (both AV and SystemWorks), and then try. You should really take a chance and install XPSP2...you leave youself wide open to the GDI+ flaw
_____________________________
|
|
|
|
Gite
Posts: 5 Joined: 10/16/2004 Status: offline
|
RE: SMTP problem - 10/18/2004 15:28:52
Thank you for the time you are devoting to this issue. I disabled Norton antivirus. As far as Systemworks is concerned, it is only running on demand, so I did not have to stop it. Same problem. I will install SP2 only once this problem is settled and my current development is over (1 week after the problem is solved). Reading back my first posts I notice that I did not tel that that application was written some months ago. I developed it on my PC and then put it into production on an ISP server. Everything worked fine at both places, but it has been a while that I had used it on my PC. It is only recently that I came back to it. Not long after the application was in production at an ISP, I installed a router at home and connected my PC to it. That is the only major change I made as far as I know. That is why I tested my application with my PC in the DMZ, to make sure the problem was not with the router. So, ...
|
|
|
|
Gite
Posts: 5 Joined: 10/16/2004 Status: offline
|
RE: SMTP problem - 10/19/2004 0:05:02
I finally solved it this way: I set the smtp server to use smart host delivery for all outbound mail, and set the smart host as the same outbound (smtp) server in myoutlook config.
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|