0

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. The mail is sent but no sender is attached to the mail. If I send from a gmail account the user address is attached..

Any help will be aprecieted!

Community
  • 1
  • 1
Tepes Lucian
  • 908
  • 1
  • 7
  • 17
  • Fount the answer! In the example was message.setSender(new InternetAddress(sender)); and I've changed it to message.setFrom(new InternetAddress(sender)); ! – Tepes Lucian Dec 05 '11 at 16:23

1 Answers1

1

Fount the answer! In the example was

message.setSender(new InternetAddress(sender)); 

and I've changed it to

message.setFrom(new InternetAddress(sender)); !
Tepes Lucian
  • 908
  • 1
  • 7
  • 17