开发者

addReplyTo doesn't seem to work

everyone.

I'm trying to configure a email specifying an email address to reply to u开发者_运维知识库sing the addReplyTo method and although the email is sent successfully

addReplyTo doesn't seem to work

when I log into the email account(octunprg@gmail.com) to read and reply to the email that has just been sent, the email address that appears in the To field is the same email address (octunprg@gmail.com) not the one I indicated using "addReplyTo"(eddysmith1818@gmail.com) when I set the email.

Is it the normal operation?? Am I doing something wrong??

addReplyTo doesn't seem to work

            Email email = new SimpleEmail();
            email.setHostName("smtp.gmail.com");
            email.setSmtpPort(587);
            email.setAuthenticator(new DefaultAuthenticator("octunprg@gmail.com", "123456"));
            email.setTLS(true);
            email.setFrom(from, name);// 'eddysmith1818@gmail.com', 'Eddy Smith'
            email.setSubject(subject);
            email.setMsg(message);
            email.addReplyTo(from, name);   // 'eddysmith1818@gmail.com', 'Eddy Smith'             
            email.addTo("octunprg@gmail.com");
            email.send();


This may be a mistake in your email client (Gmail, as I see).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜