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.

Windows Networking 2246 This topic was started by ,


data/avatar/default/avatar17.webp

16 Posts
Location -
Joined 2000-12-20
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

Participate on our website and join the conversation

You have already an account on our website? Use the link below to login.
Login
Create a new user account. Registration is free and takes only a few seconds.
Register
This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


data/avatar/default/avatar19.webp

3857 Posts
Location -
Joined 2000-03-29
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>

data/avatar/default/avatar17.webp

16 Posts
Location -
Joined 2000-12-20
OP
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

data/avatar/default/avatar19.webp

3857 Posts
Location -
Joined 2000-03-29
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.