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

yakworks.rally.mail.config.MailProps.groovy Maven / Gradle / Ivy

There is a newer version: 7.3.76
Show newest version
/*
* Copyright 2022 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.config

import groovy.transform.CompileStatic

import org.springframework.boot.context.properties.ConfigurationProperties

/**
 * Config from application.yml properties.
 */
@ConfigurationProperties(prefix="app.mail")
@CompileStatic
class MailProps {

    /** whether the mailer is enabled */
    boolean enabled = true

    /** the default domain that set up in mailgun to use, should be one for System stuff and another for AR/Collections stuff*/
    String defaultDomain

    Mailgun mailgun = new Mailgun()

    static class Mailgun {
        boolean enabled = false
        /** the private api key for sdk */
        String privateApiKey
    }

    //boxes are general setups that can be used for sending emails.
    // Map boxes = [:]
    //
    // static class MailConfig {
    //     /** default from email address */
    //     String from
    //     /** default reply to address */
    //     String replyTo
    // }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy