メールを送信するアプリケーションを開発しようとしています。うまくいきますが、Gmail から hotmail にメールを送信すると、スパムと見なされます。これは、smtp サーバーのパラメーターを記述するコードの一部です。
Properties props = new Properties();
props.put("mail.smtp.auth", "true");
props.put("mail.smtp.starttls.enable", "true");
props.put("mail.smtp.host", "smtp.gmail.com"); // pour hotmail -> smtp.live.com
props.put("mail.smtp.port", "587");
Session session = Session.getInstance(props,
new javax.mail.Authenticator() {
protected PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication(emailFrom, password);
}
});
任意のアイデアをお願いします? ありがとうございました。