CDONTS.NewMail and SMTP
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.
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
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
Participate on our website and join the conversation
This topic is archived. New comments cannot be posted and votes cannot be cast.
Responses to this topic
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:
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>
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