This is probably a really dumb question as I've always sort of assumed an email address like test@gmail would be considered invalid; obviously I'm not working in a "local domain" environment.
When using return Email() in my Mvc5 application I getting the following exception sending to what I guess is a valid email address.
System.Net.Mail.SmtpFailedRecipientException: Mailbox unavailable. The server response was: unroutable domain: gmail
Is there some additional setting or error handling I can add to stop a 500 server error from being generated? Maybe this is just as simple as try{} Catch{} wrapping my call to my "EmailController" given your usage examples?
Sorry in advance....
This is probably a really dumb question as I've always sort of assumed an email address like test@gmail would be considered invalid; obviously I'm not working in a "local domain" environment.
jQuery validation passes this off as a valid email address. http://jqueryvalidation.org/email-method/
When using return Email() in my Mvc5 application I getting the following exception sending to what I guess is a valid email address.
System.Net.Mail.SmtpFailedRecipientException: Mailbox unavailable. The server response was: unroutable domain: gmail
Is there some additional setting or error handling I can add to stop a 500 server error from being generated? Maybe this is just as simple as try{} Catch{} wrapping my call to my "EmailController" given your usage examples?
Thanks!
Ian