blob: 27eec34cf4e45bdbfd5165fa0f9a53f9aaf6aab1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
// Copyright Yahoo. 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();
void sendVerificationMail(PendingMailVerification pendingMailVerification);
}
|