public interface EmailSender
boolean isEnabled()
boolean canEmail(String address)
address
- the address to consider.void send(Address from, Collection<Address> rcpt, Map<String,EmailHeader> headers, String body) throws com.google.gerrit.common.errors.EmailException
from
- who the message is from.rcpt
- one or more address where the message will be delivered to.
This list overrides any To or CC headers in headers
.headers
- message headers.body
- text to appear in the body of the message.com.google.gerrit.common.errors.EmailException
- the message cannot be sent.