简体   繁体   English

Yahoo Mail SMTP Android

[英]Yahoo Mail SMTP Android

Following this thread : Sending Email in Android using JavaMail API without using the default/built-in app , I've tried to send a mail from a yahoo account using smtp.mail.yahoo.com and 465 as a port. 按照此线程操作: 在不使用默认/内置应用程序的情况下使用JavaMail API在Android中发送电子邮件 ,我尝试使用smtp.mail.yahoo.com和465作为端口从yahoo帐户发送邮件。 The mail is sent but no sender is attached to the mail. 邮件已发送,但没有发件人附加到该邮件。 If I send from a gmail account the user address is attached.. 如果我是从Gmail帐户发送的,则附加用户地址。

Any help will be aprecieted! 任何帮助将不胜枚举!

Fount the answer! 寻找答案! In the example was 在示例中是

message.setSender(new InternetAddress(sender)); 

and I've changed it to 我已经将其更改为

message.setFrom(new InternetAddress(sender)); !

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM