Hi,
Any help is much appreciated on this query,
ASP.NET has been installed on our server (which can send normal coldfusion mail etc) and we have been developing for over a year now no problem. However simple asp.net mail scripts do not work - no email is recieved, the same script uploaded to our hosting provider works fine. Is there some sort of setup one needs to do before being able to send mails;
Script: (obviously the to and from address as re filled in with valid addresses)
MailMessage mail = new MailMessage();
mail.To = ""
mail.From = ""
mail.BodyFormat = MailFormat.Html;
mail.Subject = "test";
mail.Body = "test body";
SmtpMail.Send(mail);
Thanks in advance
Any help is much appreciated on this query,
ASP.NET has been installed on our server (which can send normal coldfusion mail etc) and we have been developing for over a year now no problem. However simple asp.net mail scripts do not work - no email is recieved, the same script uploaded to our hosting provider works fine. Is there some sort of setup one needs to do before being able to send mails;
Script: (obviously the to and from address as re filled in with valid addresses)
MailMessage mail = new MailMessage();
mail.To = ""
mail.From = ""
mail.BodyFormat = MailFormat.Html;
mail.Subject = "test";
mail.Body = "test body";
SmtpMail.Send(mail);
Thanks in advance