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

Java

Dependencies for JavaMail

references

/:project/:dependencies

<dependency>
  <!-- JavaMail RI -->
  <groupId>com.sun.mail</groupId>
  <artifactId>javax.mail</artifactId>
  <scope>runtime</scope>
</dependency>
<dependency>
  <!-- JavaMail API -->
  <groupId>javax.mail</groupId>
  <artifactId>javax.mail-api</artifactId>
  <scope>compile</scope>
  <!-- let it stay as a runtime scoped dependency
  <exclusions>
    <exclusion>
      <groupId>javax.activation</groupId>
      <artifactId>activation</artifactId>
    </exclusion>
  </exclusions>
  -->
</dependency>
… 65 more words
Programming