您好我的回答下面这个问题:你如何从Android的任何电子邮件地址发送电子邮件?
Sending Email in Android using JavaMail API without using the default/built-in app 但在方法Sendmail的不工作设置发件人。
我希望能够发送来自不同地址的邮件,如[email protected]
,[email protected]
等......这样当人们回复电子邮件时,他们会转到正确的地址。
编辑:通过不工作,我的意思是,每当我收到一封电子邮件,它始终由您登录到使用该帐户:
GMailSender sender = new GMailSender("[email protected]", "password");
,而不是发件人字段您填写的Sendmail的方法:
sender.sendMail("This is Subject",
"This is Body",
"[email protected]",
"[email protected]");
尝试[这个答案] [1]。 [1]:http://stackoverflow.com/questions/8429818/spring-3-0-simplemailmessage-support – 2011-12-16 23:08:27