-2

I want to save all my emails into a PDF format. The file must contain all the information in mail and print it in pdf format. Is there a java programming way to to this (cause hundreds of emails) ?

  • 1
    more info needed. what kind of email server do you use? do you use IMAP or POP? details please. – logoff Dec 13 '12 at 08:21

1 Answers1

0

download email in pdf format

here answer divided into two ways

1) read all the mail's of ("inbox") and store into collection.

2) and one by one write in to pdf file

get the all the mail's from email please refer link is Reading the full email from GMail using JavaMail

and writing into pdf file so please refer link is enter link description here

in pdf use itextpdf.jar file

and give option as download

Community
  • 1
  • 1
Hardik Lotiya
  • 371
  • 3
  • 9
  • 28
  • thanks for quick response ... i could write it in pdf format but how do i download and save in my local machine first – user1897866 Dec 13 '12 at 09:16
  • use following links http://stackoverflow.com/questions/5928608/reading-the-full-email-from-gmail-using-javamail – Hardik Lotiya Dec 13 '12 at 09:34
  • use another link like http://stackoverflow.com/questions/2825887/how-to-write-java-program-to-read-new-emails-from-any-emailid – Hardik Lotiya Dec 13 '12 at 09:36