....
subdirectory. In any event, a coworker pointed out that
server name to use which does work for my app. However, I
mail directly from this server and now I can't).
Virtual Server Properties. But I still can't send mail
DNS server IP address. I also went into
server to send out email. I can only reference the smtp
server to successfully send email from my app. Is there a
>-----Original Message-----
>Hello,
>
>Does your Event Log tell you anything?
>It is:
>
>Start->Run, eventvwr.msc
>
>--
>Regards,
>Kristofer Gafvert - IIS MVP
>
http://www.ilopia.com - When you need help!
>
>
>"tippe" <anonymous@discussions.microsoft.com> wrote in
message
>news:534801c4741b$f20cca40$a601280a@phx.gbl...
>> Hello,
>>
>> A few months ago I was practicing sending an email from
an
>> smtp virtual server running on a win2k server with
iis5.0
>> running. I was practicing using aspx. This was
working.
>> Then I put it down for a while, but now I want to use it
>> again and I keep getting this error message in the bad
>> mail directory:
>>
>> >>
>> 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.
>> j.smith@smith.com
>> <<
>>
>> we'll say that j.smith@smith.com is a valid email
domain.
>>
>> Here is the code that I am using in aspx:
>> ------------------------------------------
>> <%@ Page Language="VB" %>
>> <%@ Import Namespace="System.Web.Mail"%>
>> <script runat="server">
>>
>>
>> Sub Button1_Click(sender As Object, e As EventArgs)
>> Dim EMail As New MailMessage()
>> 'fully qualified domain name is
>> cnfrkccmc001.cn.msds.kp.org
>> EMail.To = "j.smith@smith.com"
>> EMail.From = "j.smith@smith.com"
>> EMail.Cc = "jsmith@aol.com"
>> EMail.Subject = "Test Email"
>> EMail.Body = "Here is the body of our email"
>> SmtpMail.SmtpServer = "localhost" '<-- this one not
>> getting error message
>> 'SmtpMail.SmtpServer
= "cnfrkccmc001.cn.msds.kp.org" '<-
>> -this one not getting error message
>> 'SmtpMail.SmtpServer = "10.246.66.251" '<--doesn't
>> work :-( <-- this is the preferred DNS server
>> 'SmtpMail.SmtpServer = "10.237.99.226" '<--this one
not
>> getting error message
>> Try
>> SmtpMail.Send(EMail)
>> Span1.InnerHtml = "Mail Sent!"
>> Catch exc As Exception
>> Response.Write("Send mail failure: " + exc.ToString
())
>> End Try
>> End Sub
>>
>> </script>
>> <html>
>> <head>
>> </head>
>> <body>
>> <form runat="server">
>> <asp:Button id="Button1" onclick="Button1_Click"
>> runat="server" Width="89px" Text="Send
Email"></asp:Button>
>> <span id=Span1 style="font: 8pt verdana;"
>> runat="server" />
>> </form>
>> </body>
>> </html>
>> ------------------------------------------------
>>
>> Any suggestions? Do I need to set/re-set something in
the
>> smtp server or IIS? BTW, can I create an email domain
on
>> this server so that it can receive emails? How can I do
>> that?
>>
>> Thanks,
>> Tippe
>>
>>
>>
>>
>>
>
>
>.