ASP.NET - sending mail form different domain than SMTP credentials?
When sending email using MailClient, is it possible to have the .From property be for an email of a different domain than the credentials passed to the SMTP server? E.g., my credentials passed in are @mydomain.com, but the .From email is @anotherdomain.com. Or, must they be the same? Than开发者_Python百科ks.
You can specify anything you want as the From address! However it might make it more likely that your message winds up in spam or blocked by a spam firewall.
精彩评论