public class MockMailService extends Object implements org.exoplatform.services.mail.MailService
| Constructor and Description |
|---|
MockMailService() |
| Modifier and Type | Method and Description |
|---|---|
javax.mail.Session |
getMailSession() |
String |
getOutgoingMailServer() |
void |
sendMessage(org.exoplatform.services.mail.Message message) |
void |
sendMessage(javax.mail.internet.MimeMessage message) |
void |
sendMessage(String from,
String to,
String subject,
String body) |
Future<Boolean> |
sendMessageInFuture(org.exoplatform.services.mail.Message message) |
Future<Boolean> |
sendMessageInFuture(javax.mail.internet.MimeMessage message) |
Future<Boolean> |
sendMessageInFuture(String from,
String to,
String subject,
String body) |
public javax.mail.Session getMailSession()
getMailSession in interface org.exoplatform.services.mail.MailServicepublic String getOutgoingMailServer()
getOutgoingMailServer in interface org.exoplatform.services.mail.MailServicepublic void sendMessage(String from, String to, String subject, String body) throws Exception
sendMessage in interface org.exoplatform.services.mail.MailServiceExceptionpublic void sendMessage(org.exoplatform.services.mail.Message message)
throws Exception
sendMessage in interface org.exoplatform.services.mail.MailServiceExceptionpublic void sendMessage(javax.mail.internet.MimeMessage message)
throws Exception
sendMessage in interface org.exoplatform.services.mail.MailServiceExceptionpublic Future<Boolean> sendMessageInFuture(String from, String to, String subject, String body)
sendMessageInFuture in interface org.exoplatform.services.mail.MailServicepublic Future<Boolean> sendMessageInFuture(org.exoplatform.services.mail.Message message)
sendMessageInFuture in interface org.exoplatform.services.mail.MailServiceCopyright © 2003–2021 eXo Platform SAS. All rights reserved.