JavaMail– Sending Email Via Gmail SMTP Example

To send email from gmail from java code,i wrote this sample program. This will help you use gmail in your automation task. Sending email from gmail smtp server is almost same as normal smtp server. still it is sometimes it takes more time then general server as it need some extra authentication. Here is the example to send automated mail from JAVA code via gmail.…

Java Mail

We need JAVA Mail so many times. It is powerful feature of java which is everyday used for auto generated Java mails.In automation we use this feature alot. I wrote one sample program to demonstrated that. you need mail.jar that you can download from here. click here i wrote one MailerService class,in which we have sendMail public method that you can use to send email.…