public class GreenMailClient extends Object
| Constructor and Description |
|---|
GreenMailClient(com.icegreen.greenmail.user.GreenMailUser greenMailUser) |
| Modifier and Type | Method and Description |
|---|---|
void |
sendMail(String subject)
Sending email to the user account in the server.
|
void |
sendMail(String subject,
Map<String,String> headers)
Sending email to the user account in the server with additional headers.
|
public GreenMailClient(com.icegreen.greenmail.user.GreenMailUser greenMailUser)
public void sendMail(String subject) throws javax.mail.MessagingException, com.icegreen.greenmail.user.UserException
subject - Email subjectjavax.mail.MessagingException - if the properties set to the message are not validcom.icegreen.greenmail.user.UserException - when no such user or user is nullpublic void sendMail(String subject, Map<String,String> headers) throws javax.mail.MessagingException, com.icegreen.greenmail.user.UserException
subject - Email subjectjavax.mail.MessagingException - if the properties set to the message are not validcom.icegreen.greenmail.user.UserException - when no such user or user is nullCopyright © 2018 WSO2. All rights reserved.