Tags » JavaMail

Sending an email via Gmail SMTP using the JavaMail API

This post demonstrates how to send an email via Gmail SMTP using the JavaMail API. The JavaMail API is an optional package that can be used with the Java SE and the Java EE applications. 316 more words


Dependencies for JavaMail



  <!-- JavaMail RI -->
  <!-- JavaMail API -->
  <!-- let it stay as a runtime scoped dependency
… 65 more words

JavaMail enables or disables SSL 3.0

One of the features of our company’s main product is that it can send various event notifications to users and administrators by email according to various event notification policies configured. 629 more words


JavaMail API - Replying Emails

In this chapter we will see how to reply to an email using JavaMail API. Basic steps followed in the program below are:

  • Get the Session object with POP and SMPT server details in the properties.
  • 754 more words

Accessing Gmail using the JavaMail API

One of the basic features that I want on Gmail is the option to delete the mails within two selected dates.I am not very sure if that is possible, but the idea really inspired me to get hands on in the JavaMail API. 256 more words


Part IV: Sending email

Hej hej!! welcome to the last post.

The purpose our program is sending an email as soon as a new offer has been published. It’s time to let it do the job!!!!!!! 263 more words

Sin Categoría

Sending Mail to Gmail Account via SSL

package org.mail;

import java.util.Properties;

import javax.mail.Message;
import javax.mail.MessagingException;
import javax.mail.PasswordAuthentication;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;

public class ConfigureAndSendMail {

private Properties properties = System.getProperties(); 542 more words