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!!
1 comment:
This one is great... Something like when I am sleeping I am thinking it as a sleeping mode of thread, while am planning to wake up thinking it as ready mode and after wake up it is running mode of thread....
Fantastic job Vishal ..Keep up the good Work !
Post a Comment