Reputation: 3761
We have a business requirement where are required to send emails from an invalid address, so as clients are unable to reply.
The invalid address is PleaseDoNotReply - note the lack of the domain.
Where this is valid on some of our systems currently written in Delphi, our new system being written in .Net (and using MailAddress) throws this out, as invalid.
This from address is data driven, and once again, it's a business requirement, so has to work this way.
Thoughts?
New MailAddress("PleaseDoNotReply","PleaseDoNotReply");
Upvotes: 1
Views: 328
Reputation: 16126
You could use the domain ".invalid" which is reserved for testing purposes. [email protected] is guaranteed to be an invalid address. Other reserved domains are listed in RFC2606.
Upvotes: 2