| Constructor and Description |
|---|
JavaxMailOutbox(org.cactoos.BiFunc<javax.mail.Session,Msg,javax.mail.Message> fmsg,
org.cactoos.Scalar<javax.mail.Session> session)
Ctor.
|
JavaxMailOutbox(org.cactoos.Scalar<Properties> props)
Ctor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
send(Msg msg)
Send the email message to the corresponding recipients.
|
public JavaxMailOutbox(org.cactoos.Scalar<Properties> props)
props - The postman configuration properties.public JavaxMailOutbox(org.cactoos.BiFunc<javax.mail.Session,Msg,javax.mail.Message> fmsg, org.cactoos.Scalar<javax.mail.Session> session)
fmsg - The function to prepare the Message.session - The mail session with protocol providers.Message,
Sessionpublic final void send(Msg msg) throws EmailException
Outboxsend in interface Outboxmsg - The message to be sent.EmailException - In case if an email can't be sent.Copyright © 2019. All rights reserved.