Sending email in asp.net 2005

asp.net Fiji Islands
  • 12 years ago

    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 a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Computer Science is no more about computers than astronomy is about telescopes.” - E. W. Dijkstra