i use this code, i forgot where i got it so credit goes to him/her
until then
C#
MailMessage mailMessage = new MailMessage(_FromAddress, _ToAddress);
//mailMessage.CC.Add(_CCAddress);
mailMessage.Subject = Program.my1stSubjectText;
mailMessage.Body = Program.my1stReminderText;
mailMessage.IsBodyHtml = true;
mailMessage.Subject = "tes Subject";
mailMessage.Body = "HTML can be use here
really :D "
SmtpClient mailSender = new SmtpClient("SMTP_SERVER_HERE");
try
{
mailSender.Send(mailMessage);
}
catch (Exception ex)
{
Console.WriteLine(ex.ToString());
}
until then
Comments