Hi all,
for this app i'm following this example:
http://pipoltek.blogspot.com/2008/02/sending-mail-using-gmail-smtp-server.html
I can send emails, it looks good.....but i want to modify the sender email using this:
MimeMessage msg = new MimeMessage(mailSession);
msg.setFrom(new InternetAddress("[email protected]"));
[email protected] is dummy E-Mail, is not mine :)
When t use setFrom
, i recive the email from this email, which i use to authenticate. Is the authentication the reason, which disable the setFrom
method?
I need to change the "from" email, because i want, that the recipient send me an replay to another email adress.
Thanks for the help in advance.