Sending emails with JavaMail
Sending a simple text message // Common variables String host = "your_smtp_server"; String from = "from_address"; String to = "to_address"; // Set properties Properties props = new Properties();...
View ArticleSend e-mail via GMail
With this example we are going to see how to send an e-mail via GMail in a Java program. To do that you have to specify certain parameters about the SMTP host you have to use. In short to send an email...
View ArticleSend file via mail using FileDataSource example
With this example we are going to see how to sent a file using FileDataSource. In this example we are using Gmail as our smtp server. This requires that you have a Google account. You may use any smtp...
View ArticleSend email with attachment
With this tutorial we are going to see how to send an email with an attachment in a Java Application. This is particularly useful when you want to handle email activities inside your application....
View ArticleValidate email address with Java Mail API
In this example we are going to see how to validate email addresses using Java Mail API. The mail API provides the programmer an easy to use suite in order to handle mail management inside his...
View Article