Well i got a page that sends emails and everything runs fine in the developer web server but when i publish to a IIS Server i get a FormatException when i try to send the mail….
ex.Message = “the specified string is not in the form required for an e-mail address.”
the email is in this sample someone@gmail.com
Im using the “SmtpClient” and the “MailMessage” classes to send mails..
And the server runs windows server 2003
Edit:
Im using same smtp settings on the Dev Webserver as im doing in IIS.
If any one gets this problem the solution is don’t use the empty constructor of MailMessage!!!!!