aboutsummaryrefslogtreecommitdiffstats
path: root/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/organization/Mailer.java
blob: e6095296d3322a2ebc931ae9c0642f42a45ffadb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.controller.api.integration.organization;

import com.yahoo.vespa.hosted.controller.tenant.PendingMailVerification;

/**
 * Allows sending e-mail from a particular <code>user@domain</code>.
 *
 * @author jonmv
 */
public interface Mailer {

    /** Sends the given mail as the configured user@domain. */
    void send(Mail mail);

    /** Returns the user this is configured to use. */
    String user();

    /** Returns the domain this is configured to use. */
    String domain();

}