Package com.codename1.backend.mail


package com.codename1.backend.mail

Sending email: a Mail is built, a MailSender takes it, and the server delivers it in the background over the transport cn1.mail.url names.

Mail sent inside a database transaction leaves only if the transaction commits. A mail the server could not hand over is tried again; one it was refused is recorded and not sent twice. With no transport configured, mail is kept in memory, where a test reads it back.

Receiving mail, signing and encrypting it, and character sets other than UTF-8 are not part of this package.

  • Class
    Description
    One email: who it is for, what it says and what is attached.
    Collects a mail's parts; Mail.Builder.build() checks them.
    The mail server refused the credentials it was given, or offers no way to present them that is safe to use.
    A server's mail support: its transport, its queue and its defaults.
    Opens the Mailer a configuration names, and finds the one of the calling thread's server.
    Opens a transport for a URL of its scheme.
    A mail that could not be sent: the server could not be reached, refused the sender, or refused the message.
    Sends mail through the server's transport: what an application injects, as it would Spring's JavaMailSender.
    A mail the server refused, with the reply it gave.
    One way of handing an encoded mail to something that will deliver it: an SMTP server, a provider's API.