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
Page 1 of 1
CDONTS.NewMail and SMTP
#2
Posted 10 September 2001 - 06:39 PM
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:
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' address objMail.From = "techsupport@blahblah.com" objMail.Subject = strSubject 'set the subject line objMail.Body = strFrom & Chr(10) & Chr(10) & strBody & Chr(10) & Chr(10) & Now () 'set the message content objMail.Send 'and send the message Set objMail = Nothing 'then destroy the component Response.Write "done" %> </BODY> </HTML>
#3
Posted 19 September 2001 - 02:25 PM
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
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
#4
Posted 19 September 2001 - 07:12 PM
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 topic:
Page 1 of 1

Help










