Ben gmail ve yahoo çalışıyorum ama hotmail değil. İşte sahip olduğum şey, neyi yanlış yapıyorum?Hotmail'den göndermek için javamail kullanma?
private String mailhost = "smtp.live.com";
public hotmailSenderActivity(String user, String password) {
this.user = user;
this.password = password;
//This connects to the actual mailserver
Security.addProvider(new com.provider.JSSEProvider());
Properties props = new Properties();
props.setProperty("mail.transport.protocol", "smtp");
props.setProperty("mail.host", mailhost);
props.put("mail.smtp.starttls.enable", "true");
props.put("mail.smtp.auth", "true");
props.put("mail.smtp.port", "587");
props.put("mail.smtp.socketFactory.port", "587");
props.put("mail.smtp.socketFactory.class",
"javax.net.ssl.SSLSocketFactory");
props.put("smtp.starttls.enable", "true");
props.put("mail.smtp.socketFactory.fallback", "false");
props.setProperty("mail.smtp.quitwait", "false");
session = Session.getDefaultInstance(props, this);
SSL nesnesi olmadan 25 + 587 numaralı bağlantı noktasını denedim. SSL şeyler ile 465 numaralı bağlantı noktasını denedim. E-posta ve şifre doğrudur (emin olmak için sabit kodlanmışlardır).
Hata görmüyorum ... Peki sorun nedir?
ait
Bağlandıktan şimdi, kullanım yöntemleri [bu] Bu kod (http://stackoverflow.com/ buldunuz sorular/2020088/gönderme-e-posta-in-android-kullanarak-javamail-api-kullanmadan-the-varsayılan-android-a/2033124 # 2033124) – Deepak
Evet, ve dediğim gibi, gmail ve yahoo için harika çalıştı. – VicVu
kontrol edeyim ... – Deepak