graz 0 Posted September 10, 2001 Hi to all. I'm trying to send e-mails by means of CDONTS.NewMail on an ASP page, using Win2k SMTP service... I won't bother you with the very simple code I've written to test my pages (I need the e-mail for a larger scope project), but the error code I find in the .BDR in the badmail directory is: "Error is processing file in pickup directory Error code is 0xC00402CE" I really don't know which of the settings in the SMTP service I have to tweak, so I ask to you... Thanks in advance, Graz Share this post Link to post
clutch 1 Posted September 10, 2001 Are you sure the SMTP service is functioning? Have you used that same code on other servers before? You can try to telnet to port 25 on the server and see if it responds. Here is what I use for my processing (ASP) code: Code: <%@ LANGUAGE=VBSCRIPT %><HTML><HEAD><TITLE>Sending Your Email Message</TITLE><link rel="stylesheet" href="../common/default.css"></HEAD><BODY class="navbar"><p>Sending Your Email Message</P><%strTo = Request.Form("msgto") 'get message strings from Request strSubject = Request.Form("msgsubj")strFrom = Request.Form("msgfrom")strBody = Request.Form("msgbody")Response.Write "Sending email to: <B>" & strTo & "</B> .. "Set objMail = Server.CreateObject("CDONTS.Newmail")objMail.To = strTo 'set 'To' addressobjMail.From = "techsupport@blahblah.com"objMail.Subject = strSubject 'set the subject lineobjMail.Body = strFrom & Chr(10) & Chr(10) & strBody & Chr(10) & Chr(10) & Now () 'set the message contentobjMail.Send 'and send the messageSet objMail = Nothing 'then destroy the componentResponse.Write "done"%></BODY></HTML> Share this post Link to post
graz 0 Posted September 19, 2001 First of all, excuse me for haven't anwered yet, but I got a big cut on the majority of the net that only today resolved... So, thank you for your answer, clutch...the code is basically the same I used, so the problem is clearly my SMTP service...I've used telnet on the port 25, and it says it's not responding, so I'm pretty sure of that Now, I'm using IIS 5, and with it the Virtual SMTP...am I wrong? I suspect so, and that's why I ask your knowledge... Thanks in advance, Graz Share this post Link to post
clutch 1 Posted September 19, 2001 You seem to be doing it right, but do you have any sort of firewall between (including installed onto the server) you and the server? I will have to refresh my memory on the configuration of SMTP for Win2K, but when I do I may be posting again about it. Share this post Link to post