vertx / io.vertx.ext.mail.mailencoder

Package io.vertx.ext.mail.mailencoder

Types

EmailAddress

open class EmailAddress

represent a mail address with an email address part and an optional full name e.g. user@example.com user@example.com (This User) Another User <other@example.net>

the constructor will validate the address catching format errors like excess spaces, newlines the test is not very strict, for example an IDN address will be considered valid, even though SMTP doesn't work with that yet

MailEncoder

open class MailEncoder

create MIME mail messages from a MailMessage object

example usage is:

MailMessage = new MailMessage(); (set elements and attachments ...) String message = new MailEncoder(mailmessage).encode();  

usually you are not using this class directly, rather it will be used by sendMail() in MailClientImpl