All Downloads are FREE. Search and download functionalities are using the official Maven repository.

yakworks.rally.mail.MailTo.groovy Maven / Gradle / Ivy

There is a newer version: 7.3.76
Show newest version
/*
* Copyright 2023 Yak.Works - Licensed under the Apache License, Version 2.0 (the "License")
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
*/
package yakworks.rally.mail

import groovy.transform.CompileStatic

/**
 * The object is used for sending messages(emails) using Mailgun API.
 */

@CompileStatic
class MailTo {

    /** Email address for From header */
    String from

    /**
     * Email address of the recipient(s).
     * can also be a single item with emails in the standard comma seperated format.
     */
    List to

    /**
     * Same as {@link #to} but for Cc.
     * can alos be a single item with emails in standard comma seperated format.
     */
    List cc

    /**
     * Same as {@link #to} but for Bcc.
     * can also be a single item with emails in standard comma seperated format.
     */
    List bcc

    /** Message subject.*/
    String subject

    /** Body of the message. (text version) */
    String text

    /** Body of the message. (HTML version) */
    String html

    /** File attachment */
    List attachments;

    /** Attachment with inline disposition. */
    List inline;

    /** Name of a template stored via template API */
    String template;

    /** Tag string for mailgun*/
    List tags;

    /** Specify Reply-To address */
    String replyTo;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy