I'm trying to send a mail message with ASP.NET 2.0

Discussion in 'ASP.NET 2.0' started by cesar7073, Jul 23, 2008.

  1. Hi

    I'm trying to send a mail message with ASP.NET 2.0 with the following code


     
  2. Cess,

    It has been a few days so you may have this figured out...

    Discoutasp.net requires authentication to send email

    here is some VB code I have working in my web to authenticate the SMTP sever

    Dim client As New SmtpClient('smtp.YOURDOMAIN.com') 'your smtp server
    client.Credentials = New Net.NetworkCredential('[email protected]', 'password') 'Your username and password to login
    client.Send(email)
     
  3. Bruce

    Bruce DiscountASP.NET Staff

    The recommended solution is to set the SMTP hostname to "localhost".


    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  4. I just find the answer was by the 'localhost' some updates wheren't being received in my files. Sorry for the glitch
     

Share This Page