Hello:
I am having this issue from almost 3 days, I went to all the forums and tried all the possible solutions. I am still unable to find a solution for this. I am using .NET 1.1. Please help me out. Here is the code that is not working.
code
----------
private
void sendEmail()
{
try
{
MailMessage msg =
new MailMessage();
msg.From = "vinaya.gangalam@assurant.com";
msg.To = txtEmailID.Text;
msg.Subject = "PLEASE DO NOT REPLY: VaultApplication - UserName and Password Information";
msg.Body = "**********PLEASE DO NOT REPLY TO MESSAGE***************" + Environment.NewLine +
"________________________________________________" + Environment.NewLine +
"UserName = " + txtUserName.Text + Environment.NewLine +
"Password = " + s_Password + Environment.NewLine +
"________________________________________________";
SmtpMail.SmtpServer.Insert(0, "127.0.0.1");
SmtpMail.Send(msg);
}
catch(Exception ex)
{
ex.ToString();
while( ex.InnerException != null )
{
ex = ex.InnerException;
}
}
}
----------