Class IncaMailProvider

java.lang.Object
ch.tocco.nice2.messaging.mail.spi.AbstractMailProvider
ch.tocco.nice2.optional.incamail.impl.IncaMailProvider
All Implemented Interfaces:
MailProvider

@Component public class IncaMailProvider extends AbstractMailProvider
  • Constructor Details

  • Method Details

    • setWsdlLocation

      @Value("${incamail.wsdl.location}") public void setWsdlLocation(String wsdlLocation)
    • setDevMode

      @Value("${incamail.dev.mode}") public void setDevMode(boolean devMode)
    • getId

      public String getId()
      Returns:
      a unique identifier
    • getSenderMode

      public MailProvider.SenderMode getSenderMode()
      Returns:
      the "mode" for sender selection
    • getAllowedSenderAddresses

      public List<String> getAllowedSenderAddresses()
      Returns:
      a list of allowed sender addresses, will only be used with RESTRICTED SenderMode
    • instantiateMail

      public Mail instantiateMail(String subject)
      Returns:
      creates a new Mail instance that supports the current mail provider