Sunday, September 21, 2008

GMailSender 1.1

Friends, At last I have come up with new version of GMailSender. In this version I have added a new Facility of attaching a file with this mail. Now you can attach a file with your message. The functionality is same as last version. Here you have to add one more thing to the function named filepath. And class name has been changed from Mail to GMailSender.

Steps of using GMailSender in your Java Code:

  1. Get mail.jar from java.sun.com
  2. Download GMailSender 1.1.jar
  3. Set the path of GMailSender.jar in the classpath of your operating system
  4. Now in your java code import gmailsender package. (import gmailsender;)
  5. Then in a function where you want to send message type: GMailSender.sendMail("your_account@gmail.com","your_Account_Password,"receiver_mail@mail.com","subject_of_message","message.....................","file path_that_is_to_be_attached");
  6. Now run your program and see what happens.

Get GMailSender 1.1 From here


Be ready for new version of GMailSender 1.2 within few days!!