I wrote a code in .NET to send emails in my application:
Oxygenne + ASP.Net:
mensagem:=MailMessage.Create(configemail[1],toUsers);
mensagem.Subject:=title;
mensagem.Body:=body;
mensagem.IsBodyHtml:=IsBodyHtml;
This works fine when configemail[1] is something like "myemail@gmail.com". However, I have the need to send emails without using domain, something like "myemail". I am getting this error:
The specified string is not in the form required for an e-mail address
I believe this happens because the code validates if the variable has @anydomain in the string.
Am I able to override it, and let the user try to send emails without usind "@domain" in their address?