wonder how to send mail from my site below code does not work

Discussion in 'ASP.NET / ASP.NET Core' started by Plus, Aug 9, 2007.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. try


    {


    SmtpClient smtpClient = new SmtpClient();


    MailMessage mail = new MailMessage();


    mail.From = new MailAddress("[email protected]");


    mail.To.Add("[email protected]");


    mail.Subject ="POST / EDIT / DELETE" ;


    mail.Body = e_body;


    mail.IsBodyHtml = true;


    //send the message


    smtpClient.Send(mail);


    return true;


    }
     
  2. Bruce

    Bruce DiscountASP.NET Staff

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page