We need you!

We're working hard on the next version of Developer Fusion. Let us know what you think we should be up to!

Members

Technology Zones

Articles

Hosted By

MaximumASP

Info

Sending email in asp.net 2005

Last post 03-25-2008 10:52 AM by devi03. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 03-25-2008 10:52 AM

    • devi03
    • Not Ranked
    • Joined on 03-25-2008
    • India
    • New Member
    • Points 5

    Sending email in asp.net 2005

    Hi,

     iam using this code for sending email in asp.net with vb code.

    tell me what to be added or set in the default smtp server.

    Imports System.web.Mail

    Dim msg1 As New MailMessage

    msg1.From =  'txtFrom.Text

    msg1.To = 'txtTo.Text

    msg1.Subject = "test" 'txtSubject.Text

    msg1.Body = strMessage.ToString

    msg1.BodyFormat = MailFormat.Html

    msg1.Priority = MailPriority.Normal

    SmtpMail.SmtpServer = "localhost" 'Your SMTP Server (what i should specify here) 'i specified my system ip

    SmtpMail.Send(msg1)

     

    iam getting the following error. 

    The message could not be sent to the SMTP server. The transport error code was 0x800ccc15. The server response was not available

    i need help urgently.any one can suggest any solution...

     rgds,

    devi

     

     

     

     

     

     


     

     

     

    • Post Points: 5
Page 1 of 1 (1 items)