Posted By:
Anonymous
Posted On:
Sunday, December 22, 2002 06:56 AM
Dear All, I am a young man keen to learn JavaMail for a University project I am undertaking..... My first question is how can I format the date that I retrieve, I am currently using: for (int i=0, n=message.length; i { InternetAddress[] from = (InternetAddress[])message[i].getFrom(); returnString += " "; returnString += " " + from[i].getAddress() + " "; returnString += " " + message[i].getSentDate() + " "; returnString += " " + message[i].getSubject() + " "; returnString += " " + "Click here to view content"
More>>
Dear All,
I am a young man keen to learn JavaMail for a University project I am undertaking.....
My first question is how can I format the date that I retrieve, I am currently using:
for (int i=0, n=message.length; i
{
InternetAddress[] from = (InternetAddress[])message[i].getFrom();
returnString += "
";
returnString += "
" + from[i].getAddress() + "
";
returnString += "
" + message[i].getSentDate() + "
";
returnString += "
" + message[i].getSubject() + "
";
returnString += "
" + "Click here to view content" + "
";
returnString += "
" + "
" + "
";
returnString += "
";
}
However this produces it as:
Sun Dec 22 14:19:58 GMT+00:00 2002
My next question relates to retrieving the content, as you can see above I intend to provide a hyperlink stating "Click here to view content". So I was wondering how I can retrieve the content this way?
Any help from you guys and girls would be very well appreciated. And I would just like to thank everyone who has posted in this forum as it has been of great use in my learning so far.
<<Less