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.
-
ClassDescriptionSigns outgoing mail with DKIM (RFC 6376):
rsa-sha256, relaxed header and relaxed body canonicalization.A message aMailReceiverfetched: its uid, whichMailReceiver.markSeen(String)andMailReceiver.delete(String)take, and the parsed message.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 theMailera 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.A mailbox read over POP3 or IMAP:MailReceivers.fromConfig(Config)opens one.Opens theMailReceivera configuration names.Sends mail through the server's transport: what an application injects, as it would Spring'sJavaMailSender.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.Reads a received mail: an RFC 5322 message with MIME parts.A mail asMimeParserread it: the decoded headers, the text and HTML bodies and the attachments.One attached part.