3 namespace Friendica\Object\EMail;
5 use Friendica\Util\Emailer;
8 * Interface for a single mail, which can be send through Emailer::send()
10 * @see Emailer::send()
15 * Gets the senders name for this email
19 function getFromName();
22 * Gets the senders email address for this email
26 function getFromEmail();
29 * Gets the UID of the sender of this email
33 function getRecipientUid();
36 * Gets the reply-to address for this email
40 function getReplyTo();
43 * Gets the senders email address
47 function getToEmail();
50 * Gets the subject of this email
54 function getSubject();
57 * Gets the message body of this email (either html or plaintext)
59 * @param boolean $text True, if returned as plaintext
63 function getMessage(bool $text = false);
66 * Gets any additional mail header
70 function getAdditionalMailHeader();