Component evidence
Interface for sending emails over an open SMTP connection within a transactional scope.
// Source: https://github.com/bbottema/simple-java-mail | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
package org.simplejavamail.api.mailer;
import org.simplejavamail.MailException;
import org.simplejavamail.api.email.Email;
/**
* Scoped sender provided by {@link Mailer#withOpenConnection(OpenConnectionCallback)}.
* <p>
* The sender uses the SMTP connection owned by the surrounding {@link Mailer} call. It is not closeable and does not expose Jakarta Mail's
* {@code Transport}.
*/
public interface MailSender {
/**
* Sends one email over the surrounding open SMTP connection.
* <p>
* The email is processed like {@link Mailer#sendMail(Email, boolean)} with {@code asyn
... (truncated -- full source via MCP)