Javamail API - How do you change setFrom to whatever you want?

后端 未结 4 1708
孤独总比滥情好
孤独总比滥情好 2021-01-12 06:38

How do I change the setFrom() method to whatever I want? I can send e-mails through my gmail accoutn and change the setFrom text, but it shows my username for t

4条回答
  •  粉色の甜心
    2021-01-12 06:59

    Many reputable SMTP relays will not allow you to fake your identity (that would make it even easier for spammers to abuse the service). That said, if your goal is to avoid more mail in your inbox, Google allows you to modify your email address so that you could filter any replies to your email.

提交回复
热议问题