Groups | Blog | Home
all groups > iis smtp nntp > november 2004 >

iis smtp nntp : Unable to Send E-mail Using ASP Page- Please help


bluefish
11/8/2004 12:27:01 PM
Hi,
I am developing my first ASP site for a pilot project. All components are
working, but the e-mail. I am working on production environment in Win 2000
Server, which is part of a Win 2003 Small Business Server Domain. My SMTP
service is running fine. All the mail end up in the Bad Mail folder with an
error message "Unable to deliver this message because the follow error was
encountered: "Error is processing file in pickup directory.”. The specific
error code was 0xC00402CE."
or
"Unable to deliver this message because the follow error was encountered:
"This message is a delivery status notification that cannot be delivered.”.
The specific error code was 0xC00402C7.The message sender was <>.The message
was intended for the following recipients.

I have 2 simple ASP pages that I have used just to test the functionality..
and the code is as follows. Form.asp

<html>

<head>
<title>From email</title>
</head>

<body>

<form method="post" action="Mailtest.asp">
<p>From email: <input type="text" name="sender" size="20"><br>
To email: <input type="text" name="receiver" size="20"><br>
Subject: <input type="text" name="subject" size="20"><br>
Body: <textarea name="body" rows="1" cols="20"></textarea><br>
<input type="submit"> </p>
</form>
</body>
</html>

and MailTest.asp

<%

set mail=server.CreateObject("CDONTS.NewMail")
mail.From= Request.querystring("sender") ' like my.email.addr@comsoltech.com
mail.To = Request.querystring("receiver") ' like john.doe@comsoltech.com
mail.Subject = Request.querystring("subject")
mail.Body = Request.querystring("body")
mail.BodyFormat = 0 ' 0 = HTML, 1 = Plain
mail.MailFormat = 1 ' 0 = MIME, 1 = Text
mail.Importance = 1 ' 0 =High, 1 = Medium, 2 = Low

mail.Send
set mail=nothing
%>
<html>

Please help!
Thank you
Sam
yonlinemanghn NO[at]SPAM online.microsoft.com
11/11/2004 12:59:20 AM
Hello,
Check if this article applies:
http://support.microsoft.com/default.aspx?scid=kb;en-us;319285

Good luck,
Yogita Manghnani
Microsoft Developer Support
Internet Information Server

*********************************************************************
[quoted text, click to view]
account name for newsgroup participation only.<<

This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use.

© 2003 Microsoft Corporation. All rights reserved.
*********************************************************************
AddThis Social Bookmark Button