GithubHelp home page GithubHelp logo

marcosvidolin / messagefy Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 100 KB

✉️ This is a very small helper java library to easily build a JavaMail MIME object (javax.mail.internet.MimeMessage).

License: MIT License

Java 100.00%
mimemessage javamail-mime java mail message email library

messagefy's Introduction

Messagefy

Codacy Badge Build Status Download

This is a very small helper java library to easily build a JavaMail MIME object (javax.mail.internet.MimeMessage).

To add Messagefy on your project:

Messagefy is release by publishing in to the JCenter. So add the following configuration to your "build.gradle".

repositories {
    ...
    jcenter()
}

Maven:

<dependency>
	<groupId>com.vidolima</groupId>
	<artifactId>messagefy</artifactId>
	<version>1.1.1</version>
	<type>pom</type>
</dependency>

Gradle:

dependencies {
  compile 'com.vidolima:messagefy:1.1.1'
}

Getting started

Example:

 Messagefy messagefy = new Messagefy.Builder()
       .from("[email protected]")
       .to("[email protected]")
       .subject("Messagefy")
       .content("Hello Messagefy!")
       .build();
       
javaMailSender.send(messagefy.getMailMessage());

More Options

Attribute Type Description
attachment byte[] The file to be attached to the message.
attachmentMimeType String Attachment MIME type.
attachmentName String Attachment name. Default name is "Untitled".
ccList Collection List of "Cc" (carbon copy) recipients.
content String The Message's content to a Multipart object.
contentType String The Message's Content Type. Default content type is "text/html".
from String The sender e-mail.
senderName String The sender name.
subject String The Message's subject.
toList Collection List of "To" (primary) recipients.

License

Messagefy is released under the terms of the MIT License.

Contributors

messagefy's People

Contributors

marcosvidolin avatar renovate-bot avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

codacy-badger

messagefy's Issues

multipart question

How to set 'multipart/alternative' ,'text/plain' and 'text/html' in a email body ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.