You must Sign In to post a response.
  • Category: Suggestions

    Smtp authentication error

    Dear Sir,

    I have smtp Authentication error.
    How to send mail using from asp spider hosted website

    Kindly Suggest me
  • #7075
    I think you could use this

    public void SendEmail(string to)
    SmtpClient smtp = new SmtpClient("ServerAddress", 25);//using default port 25
    smtp.Credentials = new NetworkCredential("user","pass");
    //user and pass should be encrypted
    MailMessage mail = new MailMessage();
    mail.From = ""
    mail.To = to;
    mail.Subject = "Some Subject";
    mail.Body="Some Body";
    catch(Exception e)
    //do something

  • Sign In to post your comments