Mr Jones Posted December 8, 2004 Share Posted December 8, 2004 Någon som har varit med om att det inte går att skicka mail via serverns smtp tjänst? Windows 2003 Enterprice är det som används. MailMessage Message = new MailMessage(); Message.To = "tommy@mymail.se"; Message.From = "t@mymail.se"; Message.Subject = "subject"; Message.Body = "hey"; try { SmtpMail.SmtpServer = "local"; //SmtpMail.SmtpServer = "localhost"; //SmtpMail.SmtpServer = "mail"; SmtpMail.Send(Message); Response.Write("Skickat"); } catch(System.Web.HttpException ehttp) { Response.Write(ehttp.Message); Response.Write("Here is the full error message output"); Response.Write(ehttp.ToString()); } Link to comment Share on other sites More sharing options...
TSH Posted January 11, 2005 Share Posted January 11, 2005 Testa detta http://support.microsoft.com/default.aspx?scid=kb;en-us;323350 /Tsh Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.