Hi,
I want to send email using asp.net 1.1 with C# , my code is
MailMessage msg=new MailMessage();
msg.To=toaddress;
msg.From=fromaddress;
msg.Subject="Test";
msg.Body="Test body";
SmtpMail.SmtpServer=mySmtpServer;
SmtpMail.Send(msg);
The same code works in asp.net 2.0 and even in c# 1.1 windows application. But when I try to use this code in asp.net 1.1 I get this error:
System.Runtime.InteropServices.COMException: The transport failed to connect to the server
Please help,
Thank You
I want to send email using asp.net 1.1 with C# , my code is
MailMessage msg=new MailMessage();
msg.To=toaddress;
msg.From=fromaddress;
msg.Subject="Test";
msg.Body="Test body";
SmtpMail.SmtpServer=mySmtpServer;
SmtpMail.Send(msg);
The same code works in asp.net 2.0 and even in c# 1.1 windows application. But when I try to use this code in asp.net 1.1 I get this error:
System.Runtime.InteropServices.COMException: The transport failed to connect to the server
Please help,
Thank You