Reputation: 7051
Currently I have this going on:
Store store = sendsession.getStore(mailhost);
store.connect(mailhost, user, password);
String box = "SENT";
Folder folder = store.getFolder(box);
folder.open(Folder.READ_WRITE);
message.setFlag(Flag.SEEN, true);
folder.appendMessages(new Message[] {message});
store.close();
And it works for Gmail and Hotmail, but it wont send to the Sent folder when sending from Yahoo. Is the sent folder accessed by a different name in yahoo?
Upvotes: 1
Views: 1755
Reputation: 29971
There is no standard or universal name for the "Sent" folder. It's a convention of the mail client you're using; different clients might follow different conventions.
Also, see this JavaMail wiki entry on Yahoo Mail.
If that doesn't help, this JavaMail FAQ entry explains the additional information we need to help you debug the problem.
Upvotes: 2