## Uses of Interface
org.appng.mail.Mail

- Packages that use Mail
  Package | Description
  --- | ---
  org.appng.mail | Provides an easy-to-use API for sending e-mails
  org.appng.mail.impl | The standard implementations for `Mail`, `Attachment` and `MailTransport`

- - ### Uses of Mail in org.appng.mail

    Methods in org.appng.mail that return Mail
    Modifier and Type | Method and Description
    --- | ---
    `Mail` | Mail.`addAttachment(File file, String mimeType)`
    `Mail` | Mail.`addAttachment(File file, String name, String mimeType)`
    `Mail` | Mail.`addAttachment(InputStream is, String name, String mimeType)`
    `Mail` | Mail.`addReceiver(Receiver receiver)`
    `Mail` | Mail.`addReceiver(String email, Mail.RecipientType type)`
    `Mail` | Mail.`addReceiver(String email, String name, Mail.RecipientType type)`
    `Mail` | Mail.`addReplyTo(String email)`
    `Mail` | Mail.`addReplyTo(String email, String name)`
    `Mail` | MailTransport.`createMail()` Creates and returns a new `Mail`.
    `Mail` | Mail.`setFrom(String from)`
    `Mail` | Mail.`setFrom(String from, String name)`
    `Mail` | Mail.`setHTMLContent(String content)`
    `Mail` | Mail.`setSubject(String subject)`
    `Mail` | Mail.`setTextContent(String content)`

    Methods in org.appng.mail with parameters of type Mail
    Modifier and Type | Method and Description
    --- | ---
    `String` | MailTransport.`getMailAsString(Mail mail)` Returns a string-representation if the given `Mail`. Attention: The `Mail` may contain sensitive informations like passwords!
    `void` | MailTransport.`send(Mail mail)` Send the given `Mail`.

  - ### Uses of Mail in org.appng.mail.impl

    Classes in org.appng.mail.impl that implement Mail
    Modifier and Type | Class and Description
    --- | ---
    `class` | `MailImpl`

    Methods in org.appng.mail.impl that return Mail
    Modifier and Type | Method and Description
    --- | ---
    `Mail` | MailImpl.`addAttachment(File file, String mimeType)`
    `Mail` | MailImpl.`addAttachment(File file, String name, String mimeType)`
    `Mail` | MailImpl.`addAttachment(InputStream is, String name, String mimeType)`
    `Mail` | MailImpl.`addReceiver(Receiver receiver)`
    `Mail` | MailImpl.`addReceiver(String email, Mail.RecipientType type)`
    `Mail` | MailImpl.`addReceiver(String email, String name, Mail.RecipientType type)`
    `Mail` | MailImpl.`addReplyTo(String email)`
    `Mail` | MailImpl.`addReplyTo(String email, String name)`
    `Mail` | DefaultTransport.`createMail()`
    `Mail` | MailImpl.`setFrom(Address from)`
    `Mail` | MailImpl.`setFrom(String from)`
    `Mail` | MailImpl.`setFrom(String from, String name)`
    `Mail` | MailImpl.`setHTMLContent(String content)`
    `Mail` | MailImpl.`setSubject(String subject)`
    `Mail` | MailImpl.`setTextContent(String content)`

    Methods in org.appng.mail.impl with parameters of type Mail
    Modifier and Type | Method and Description
    --- | ---
    `protected javax.mail.Message` | DefaultTransport.`buildMessage(Mail mail)`
    `protected javax.mail.Message` | DefaultTransport.`buildMessage(javax.mail.Message mimeMessage, Mail mail)`
    `String` | DefaultTransport.`getMailAsString(Mail mail)`
    `void` | DefaultTransport.`send(Mail mail)`
    `protected void` | DefaultTransport.`send(Mail mail, Collection<String> invalidAdresses)`

Copyright © 2011–2023 aiticon GmbH. All rights reserved.