« Previous Next »

Thread: smtp on iis 5.1 trouble

Last post 07-12-2009 5:34 PM by steve schofield. 2 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (3 items)

Sort Posts:

  • 07-10-2009, 9:06 PM

    smtp on iis 5.1 trouble

    hi help,

    trying to test smtp on iis 5.1.
    html:

    Code:
    <body>
    
    <form method="POST" action="tiz.asp">
    To <input type="text" name="To"/> <br />
    From <input type="text" name="From"/> <br />
    Subject <input type="text" name="Subject"/> <br />
    Body <textarea name="Body" rows="5" cols="20" wrap="physical" > 
    </textarea>
    <input type="submit" />
    </form>
    
    </body>


    asp:

    Code:
    <%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    </head>
    
    <body>
    <%
    'Sends an email
    Dim mail
    Set mail = Server.CreateObject("CDO.Message")
    mail.To = Request.Form("To")
    mail.From = Request.Form("From")
    mail.Subject = Request.Form("Subject")
    mail.TextBody = Request.Form("Body")
    mail.Send()
    Response.Write("Mail Sent!")
    'Destroy the mail object!
    Set mail = nothing
    %>
    
    </body>
    </html>



    iis:

    Default SMTP Virtual Server

    General:
    IP address-192.169.2.xxx

    access:
    authentication-anon

    delivery-advanced
    fqdn checked od
    smsarthost 192.168.2.xxx






    what's going on is nothing,i tried a few of these test scripts
    can not get any email to be delverd.


    thanks,
    craig

  • 07-11-2009, 6:16 PM In reply to

    Re: smtp on iis 5.1 trouble

     It is hard to track. Because, by default IIS stmp logs are not enabled. If enables, they do not give any valuable information.

    May be your to email address mail server rejecting your email since the email was sent without smtp authentication and your IIS machine does not have the hostname (rDNS)

    AccuWebHosting.Com - Windows Hosting Expert
    ASP.NET 3.5 | SQL 2005 Database | US Based Hosting Company | 24 X 7 Support | Daily Backups | Uptime Guarantee | Affiliates - $50 Per Sale
    | Online US Jobs | Website Hosting Directory | Windows Hosting
  • 07-12-2009, 5:34 PM In reply to

    Re: smtp on iis 5.1 trouble

    Steve Schofield
    Windows Server MVP - IIS
    http://weblogs.asp.net/steveschofield


    http://www.IISLogs.com
    Log archival solution
    Install, Configure, Forget
Page 1 of 1 (3 items)