locked
SMTP Server Can't send out email

    Question

  • <%@import NameSpace="System.Web.Mail"%>

    <%

    Dim myMail As New MailMessage()
    myMail.From = "fromName@domain.com"
    myMail.To = "toName@domain.com"
    myMail.Subject = "eMail Testing"
    myMail.BodyFormat = MailFormat.Html
    myMail.Body = "<b>Hi,</b><p>eMail Tesing"
    SmtpMail.Send(myMail)

    %>   

    in SMTP server, it is under C:\Inetpub\mailroot

    after I run the pgm, there is no error message, the email can't send to target email account, and the mail move to Badmail folder.

    Server Config: Window 2000 SP4 / .Net Framework 1.1

     

     

     

    Wednesday, July 12, 2006 2:45 AM