i need send mail from gadaddy
am using the following code for send mail ,and ths is work fine in local server but after host on godaddy its not working ...
please help me
my code
public bool send_mail(string to, string from, string subject, string body)
{
System.Net.Mail.MailMessage msg = new System.Net.Mail.MailMessage(from, to);
msg.Subject = subject;
System.Net.Mail.AlternateView view;
System.Net.Mail.SmtpClient client;
StringBuilder msgText = new StringBuilder();
msgText.Append(" <html><body><br></body></html> <br><br><br> " + body);
view = System.Net.Mail.AlternateView.CreateAlternateViewFromString(msgText.ToString(), null, "text/html");
msg.AlternateViews.Add(view);
client = new System.Net.Mail.SmtpClient();
...
Go to the complete details ...