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.
  • Method Details

    • getTo

      List<String> 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 use multipart/form-data content 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

      List<Pair<String,String>> getCustomVariables()
      Get customVariables
      Returns:
      customVariables
    • getCustomHeaders

      List<Pair<String,String>> getCustomHeaders()
      Get customHeaders
      Returns:
      customHeaders
    • builder

      static SendMimeEmailRequest.Builder builder()
      Getting builder
      Returns:
      New Builder instance