Hi I was following the answer to this question:
Sending Email in Android using JavaMail API without using the default/built-in app but setting the sender in the method sendMail does not work.
I would like to be able to send mail from different addresses such as support@example.com
, sales@example.com
, etc... so that way when people reply to the emails they go to the correct addresses.
Edit: By does not work I mean whenever I get an email it is always from the account that you sign into using:
GMailSender sender = new GMailSender("username@gmail.com", "password");
and not the sender field that you fill out in the sendMail method:
sender.sendMail("This is Subject",
"This is Body",
"sender@gmail.com",
"recipiant@yahoo.com");