03-10-2009 02:52 PM
hi,
I need to send some emails by the method Transport.send(), but I find this will be logged.
And, since there will be a lot of mails a day, there are too many logs in the sent mails.
How can it not be shown in the [sent mails/items] ?
Thanks,
Jerry
Solved! Go to Solution.
03-16-2009 12:40 PM
03-26-2009 12:16 PM
HI, THANKS.
Do you mean I can delete the sent log in the sent item manually?
Can you please give a simple example ?
I find the class Folder, and the SENT field, but I don't know how to use them.
Thanks.
03-31-2009 08:31 AM
03-31-2009 08:35 AM
04-01-2009 09:25 AM
I add a sleeping time between sending and deleting. But it seems the mail still cannot be sent.
Anymore suggestions ? Thanks.
// sending here
...
// sleeping
try{
Thread.sleep(2000);
}catch(InterruptedException e)
{
System.out.println(e.getMessage());
}
// delete the sent log in the sent box
msg.setFlag(Message.Flag.OPENED, true);
Folder folder = msg.getFolder();
boolean bRet = folder.deleteMessage(msg,true);
04-14-2009 04:25 PM