for this application, I follow 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 change the sender's email using this:
MimeMessage msg = new MimeMessage(mailSession); msg.setFrom(new InternetAddress(" baba-jaga@gmail.com "));
baba-jaga@gmail.com - dummy E-Mail, not mine :)
When t use setFrom , I get an email from this email, which I use for authentication. Is authentication a reason that disables the setFrom method?
I need to change the "from" email, because I want the recipient to send me a replay to a different email address.
java email gmail javamail sender
cupakob
source share