Forum Moderators: open
At the moment when I submit my page the email goes into the queing file in C:\Inetpub\mailroot\Queue
I have SMTP installed on my pc.
I nothing is coming up in MS Outlook either.
I am stuck could someone please run me through the setup of SMTP in II5 if possible please. I may have gone wrong somewhere.
He is my code too.
<html>
<form method=post action=sendmail.asp>
From email: <input type=text name=sender><br>
<input type=hidden name=receiver
value=sl1210user@aol.com><br>
Subject: <input type=text name=subject><p>
Body: <textarea name=body></textarea><p>
<input type=submit>
</form>
</html>
<%
set mail=server.CreateObject("CDONTS.NewMail")
mail.From= Request("sender") ' like my.email.addr@comsoltech.com
mail.To = Request("receiver") ' like john.doe@comsoltech.com
mail.Subject = Request("subject")
mail.Body = Request("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
%>
pls help
Many web sites which my company hosts I send test mail to a hotmail or yahoo account, or we have an alternative domain set up which allows us to send mail internally...(basically DNS for the alternative domain is an internal IP which lets SMTP not go through the DMZ out and back in again].
Basic things you can check - SMTP writes warnings and failures to the event logs. You can turn on logging in the IIS MMC and see what is happening also.
Mail should be dropped in inetpub\mailroot\pickup, [in fact you can compose an email in notepad and drop it here also]. if an attempt for delivery is made and fails, it then goes into the queue, and delivery is reattempted per your IIS/SMTP settings. If it continues to fail, it then ends up in badmail.
Scott