Hi Guys,
I am trying to send emails in C# using the following code :
public bool SendMyMail(string SenderId, string RecId, string Subject, string body)
{
bool retVal = false;
try
{
message = new System.Net.Mail.MailMessage(SenderId, RecId);
message.IsBodyHtml = true;
message.Body = body;
message.Subject = Subject;
smtp = new SmtpClient();
smtp.Send(message);
retVal = true;
}
catch (Exception e)
{
retVal = false;
throw e;
}
return retVal;
}
My settings in the web.config are as follows:
<system.net>
<mailSettings>
<smtp deliveryMe ...
Go to the complete details ...