Skip to content

zandero/mail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mail

Utility to build a mail MimeMessage

Setup

JAVA 8
<dependency>      
     <groupId>com.zandero</groupId>      
     <artifactId>mail</artifactId>      
     <version>1.0.2</version>      
</dependency>
        
JAVA 8
<dependency>
    <groupId>com.zandero</groupId>
    <artifactId>mail</artifactId>
    <version>1.1.1</version>
</dependency>

Usage

MailMessage message = new MailMessage();
message.to("mail@email.com")
    .from("from@email.com")
    .subject("Test")
    .html("<p>Hello</p>");

MimeMessage mime = message.getMessage(session);

Included integrations

SMTP

SendGrid

MailGun