public class

Email

extends Object
java.lang.Object
   ↳ com.neomades.io.mail.Email

Class Overview

Represents an email message.
Use EmailManager to send the message.

Summary

Public Constructors
Email()
Public Methods
Email setBcc(String bcc)
This property follows the RFC specification for email addresses.
Email setBody(String body)
Email setCc(String cc)
This property follows the RFC specification for email addresses.
Email setSubject(String subject)
Email setTo(String to)
This property follows the RFC specification for email addresses.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Email ()

Public Methods

public Email setBcc (String bcc)

This property follows the RFC specification for email addresses. Do not use a comma to delimit multiple addresses. The following are some examples of properly formatted addresses :

  • "John Doe"
  • john.doe@neomades.com
  • "John Doe" ;"Jane Doe"
  • john.doe@neomades.com;jane.doe@neomades.com

Parameters
bcc the email addresses that should be blind carbon copied.
Returns
  • the current email

public Email setBody (String body)

Parameters
body a string holding the body of the message.
Returns
  • the current email

public Email setCc (String cc)

This property follows the RFC specification for email addresses. Do not use a comma to delimit multiple addresses. The following are some examples of properly formatted addresses :

  • "John Doe"
  • john.doe@neomades.com
  • "John Doe" ;"Jane Doe"
  • john.doe@neomades.com;jane.doe@neomades.com

Parameters
cc the email addresses that should be carbon copied.
Returns
  • the current email

public Email setSubject (String subject)

Parameters
subject a string holding the desired subject line of the message.
Returns
  • the current email

public Email setTo (String to)

This property follows the RFC specification for email addresses. Do not use a comma to delimit multiple addresses. The following are some examples of properly formatted addresses :

  • "John Doe"
  • john.doe@neomades.com
  • "John Doe" ;"Jane Doe"
  • john.doe@neomades.com;jane.doe@neomades.com

Parameters
to the email addresses that should be delivered to.
Returns
  • the current email