Class IncaMail
java.lang.Object
ch.tocco.nice2.messaging.mail.spi.AbstractBaseMail
ch.tocco.nice2.messaging.mail.spi.AbstractOutgoingMail
ch.tocco.nice2.optional.incamail.impl.IncaMail
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.tocco.nice2.messaging.mail.api.Mail
Mail.MailListener
-
Field Summary
Fields inherited from class ch.tocco.nice2.messaging.mail.spi.AbstractOutgoingMail
attributes, charset, contactCategory, encodeFileNames, expiryDate, listeners, mailArchive, mailSendThrottle, nice2Template, persistenceService, preventFromArchive, processor, recipientEntity, relatedEntity, sender, singleCopyMail, sourceEntities, sourceEntity, taskUuid, templateAttributes, templateEngine, templateEntity
Fields inherited from class ch.tocco.nice2.messaging.mail.spi.AbstractBaseMail
attachments, bcc, cc, from, html, log, replyTo, subject, text, to
Fields inherited from interface ch.tocco.nice2.messaging.mail.api.BaseMail
NO_SUBJECT
-
Constructor Summary
ConstructorDescriptionIncaMail
(org.slf4j.Logger log, SecurityManager securityManager, PersistenceService persistenceService, TemplateEngineFactory templateEngineFactory, MailArchive mailArchive, MessageProcessor processor, MailSendThrottle mailSendThrottle, String subject, Boolean encodeFileNames, String wsdlLocation, boolean devMode) -
Method Summary
Modifier and TypeMethodDescriptionprotected IncaMailPort
createService
(String username, String password) protected MailArchive.MailArchiveEntry
doSend()
getBody()
Methods inherited from class ch.tocco.nice2.messaging.mail.spi.AbstractOutgoingMail
addBcc, addBcc, addBcc, addCc, addCc, addCc, addMailListener, addSourceEntity, addTo, addTo, addTo, checkRecipientAndContent, clone, getAttributes, getCharset, getContactCategory, getExpiryDate, getRecipientEntity, getRelatedEntity, getSender, getSourceEntity, getTaskUuid, getTemplateAttribute, getTemplateAttributes, getTemplateEntity, isSingleCopyMail, preventFromArchive, processTemplate, processTemplate, processTemplateWithHtmlEscape, removeMailListener, send, setCharset, setContactCategory, setExpiryDate, setFrom, setRecipientEntity, setRelatedEntity, setSender, setSingleCopyMail, setSourceEntity, setTaskUuid, setTemplateAttribute, setTemplateEntity, setTemplateEntityData, setTemplateEntityListData
Methods inherited from class ch.tocco.nice2.messaging.mail.spi.AbstractBaseMail
addAttachment, addBcc, addBcc, addCc, addCc, addReplyTo, addReplyTo, addReplyTo, addTo, addTo, addTo, clearAttachments, clearBcc, clearCc, clearReplyTo, clearTo, containsAttachment, createAttachment, createAttachment, createAttachment, getAttachments, getBcc, getCc, getFrom, getHtml, getReplyTo, getSubject, getText, getTo, mergeWithExistingHtml, removeAttachment, setBcc, setCc, setFrom, setHtml, setReplyTo, setSubject, setText, setTo, toString
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.messaging.mail.api.BaseMail
addAttachment, addBcc, addBcc, addCc, addCc, addReplyTo, addReplyTo, addReplyTo, addTo, addTo, addTo, clearAttachments, clearBcc, clearCc, clearReplyTo, clearTo, createAttachment, createAttachment, createAttachment, getAttachments, getBcc, getCc, getFrom, getHtml, getReplyTo, getSubject, getText, getTo, setFrom, setHtml, setSubject, setText
Methods inherited from interface ch.tocco.nice2.messaging.mail.api.Mail
containsAttachment, removeAttachment
-
Constructor Details
-
IncaMail
public IncaMail(org.slf4j.Logger log, SecurityManager securityManager, PersistenceService persistenceService, TemplateEngineFactory templateEngineFactory, MailArchive mailArchive, MessageProcessor processor, MailSendThrottle mailSendThrottle, String subject, Boolean encodeFileNames, String wsdlLocation, boolean devMode)
-
-
Method Details
-
getBody
- Throws:
MailException
-
getMimeMessageHeaders
-
getMimeMessageFrom
-
doSend
- Specified by:
doSend
in classAbstractOutgoingMail
- Throws:
MailException
-
createService
@VisibleForTesting protected IncaMailPort createService(String username, String password) throws MalformedURLException - Throws:
MalformedURLException
-