How to hide sender email address using phpmailer?

前端 未结 6 1189
忘掉有多难
忘掉有多难 2021-01-19 07:01

I am using phpmailer to send email. I need to know how to hide or mask sender email address

6条回答
  •  孤独总比滥情好
    2021-01-19 07:33

    You can specify any sender email address anyway, since SMTP by itself does not place any requirements on sender email addresses.

    If the actual SMTP server you use places restrictions on email addresses (e.g. corporate servers which do not allow sender emails outside of the company domain) there's no way around that, unless of course you can influence the mail server configuration.

    Update: You say in a comment that you want to use gmail to send email where the sender's address is not a gmail address. There is no way to do that.

提交回复
热议问题