Steps of using GMailSender in your Java Code:
- Get mail.jar from java.sun.com
- Download GMailSender 1.1.jar
- Set the path of GMailSender.jar in the classpath of your operating system
- Now in your java code import gmailsender package. (import gmailsender;)
- 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");
- 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!!