Package com.mailersend.sdk.emails
Class Emails
- java.lang.Object
-
- com.mailersend.sdk.emails.Emails
-
public class Emails extends Object
Emails class.
- Version:
- $Id: $Id
- Author:
- mailersend
-
-
Constructor Summary
Constructors Constructor Description Emails(MailerSend objectRef)Constructor for Emails.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringbulkSend(Email[] emails)Sends the given emails in one batch callBulkSendStatusbulkSendStatus(String bulkSendId)Get the status of a bulk email sendEmailcreateEmail()Creates a new emailMailerSendResponsesend(Email email)Sends the given emailvoidsetDefaultFrom(Recipient from)Sets the default from
-
-
-
Constructor Detail
-
Emails
public Emails(MailerSend objectRef)
Constructor for Emails.
- Parameters:
objectRef- aMailerSendobject.
-
-
Method Detail
-
setDefaultFrom
public void setDefaultFrom(Recipient from)
Sets the default from- Parameters:
from- aRecipientobject.
-
send
public MailerSendResponse send(Email email) throws MailerSendException
Sends the given email- Parameters:
email- aEmailobject.- Returns:
- a
MailerSendResponseobject. - Throws:
MailerSendException
-
bulkSend
public String bulkSend(Email[] emails) throws MailerSendException
Sends the given emails in one batch call- Parameters:
emails- an array ofEmailobjects.- Returns:
- a
Stringobject. - Throws:
MailerSendException
-
bulkSendStatus
public BulkSendStatus bulkSendStatus(String bulkSendId) throws MailerSendException
Get the status of a bulk email send- Parameters:
bulkSendId- aStringobject.- Returns:
- a
BulkSendStatusobject. - Throws:
MailerSendException
-
-