我可以使用JavaMail通过Gmail发送邮件。
但是,我无法设置任何回复方式...
我正在使用的代码是...
//the actual mail id someone@gmail.com
ccAddress = new InternetAddress( "someone+something@gmail.com");
msg.setFrom(ccAddress);
Address[] addresses = new Address[1];
//actually i want to addressee to reply-to
addresses[0] = new InternetAddress( "someone@yahoo.com" );
msg.setReplyTo(addresses);
msg.setSubject(subject);
msg.setText(text);
msg.setHeader("MIME-Version" , "1.0" );
msg.setHeader("Content-Type" , "text/html" );
msg.setHeader("X-Mailer", "Recommend-It Mailer V2.03c02");