Interface SendMimeEmailRequest
public interface SendMimeEmailRequest
Sending email message request. Build a MIME string yourself using a MIME library for your
programming language and submit it to Mailgun.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceDedicated Builder -
Method Summary
Modifier and TypeMethodDescriptionstatic SendMimeEmailRequest.Builderbuilder()Getting builderGet customHeadersGet customVariablesMIME string of the message.Get overridePropertiesA valid JSON-encoded dictionary, where key is a plain recipient address and value is a dictionary with variables that can be referenced in the message body.Name of a template stored via template API to use to render the email body.Get templatePropertiesgetTo()Email address of the recipient(s).
-
Method Details
-
getTo
Email address of the recipient(s). Example:\"Bob <bob@host.com>\". You can use commas to separate multiple recipients- Returns:
- to
-
getMessage
File getMessage()MIME string of the message. Make sure to usemultipart/form-datacontent type to send this as a file upload- Returns:
- message
-
getTemplate
String getTemplate()Name of a template stored via template API to use to render the email body. See Templates for more information- Returns:
- template
-
getRecipientVariables
String getRecipientVariables()A valid JSON-encoded dictionary, where key is a plain recipient address and value is a dictionary with variables that can be referenced in the message body. See Batch Sending for more information- Returns:
- recipientVariables
-
getTemplateProperties
TemplateProperties getTemplateProperties()Get templateProperties- Returns:
- templateProperties
-
getOverrideProperties
OverrideProperties getOverrideProperties()Get overrideProperties- Returns:
- overrideProperties
-
getCustomVariables
Get customVariables- Returns:
- customVariables
-
getCustomHeaders
Get customHeaders- Returns:
- customHeaders
-
builder
Getting builder- Returns:
- New Builder instance
-