开发者

ASP.NET - sending mail form different domain than SMTP credentials?

开发者 https://www.devze.com 2023-02-04 06:03 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消