public class SmtpConnector extends AbstractMailConnector
SmtpConnector
is used to connect to and send data to an SMTP mail
serverModifier and Type | Field and Description |
---|---|
static String |
DEFAULT_CONTENT_TYPE |
static String |
DEFAULT_SMTP_HOST |
static int |
DEFAULT_SMTP_PORT |
static String |
SMTP |
ATTACHMENT_HEADERS_PROPERTY_POSTFIX, MAILBOX
createMultipleTransactedReceivers, DEFAULT_NUM_CONCURRENT_TX_RECEIVERS, dispatcherFactory, dispatcherPoolFactory, dispatchers, initialStateStopped, lifecycleManager, logger, muleContext, muleMessageFactory, name, numberOfConcurrentTransactedReceivers, PROPERTY_POLLING_FREQUENCY, receivers, requesterFactory, requesters, serviceDescriptor, serviceOverrides, sessionHandler, startOnConnect
INT_VALUE_NOT_SET
PHASE_NAME
Constructor and Description |
---|
SmtpConnector(MuleContext context) |
Modifier and Type | Method and Description |
---|---|
MessageReceiver |
createReceiver(FlowConstruct flowConstruct,
InboundEndpoint endpoint)
Create a Message receiver for this connector
|
String |
getBccAddresses() |
String |
getCcAddresses() |
String |
getContentType() |
Properties |
getCustomHeaders() |
int |
getDefaultPort() |
String |
getFromAddress() |
String |
getProtocol() |
String |
getReplyToAddresses() |
String |
getSubject() |
void |
setBccAddresses(String string) |
void |
setCcAddresses(String string) |
void |
setContentType(String contentType) |
void |
setCustomHeaders(Properties customHeaders) |
void |
setFromAddress(String string) |
void |
setReplyToAddresses(String replyTo) |
void |
setSubject(String string) |
doConnect, doDisconnect, doDispose, doInitialise, doStart, doStop, dumpProperties, extendPropertiesForSession, getAuthenticator, getBaseProtocol, getMailboxFolder, getSessionDetails, newSession, setAuthenticator, setMailboxFolder, urlFromEndpoint
borrowDispatcher, clearDispatchers, clearRequesters, configureDispatcherPool, connect, createDefaultRedeliveryPolicy, createDispatcherMessageProcessor, createMuleMessageFactory, createOperationResource, createScheduler, destroyReceiver, disconnect, dispose, disposeReceivers, disposeWorkManagers, doUnregisterListener, fireNotification, getCanonicalURI, getConnectEventId, getConnectionDescription, getDefaultExchangePattern, getDefaultInboundTransformers, getDefaultOutboundTransformers, getDefaultResponseTransformers, getDispatcherFactory, getDispatcherPoolFactory, getDispatcherThreadingProfile, getDispatcherWorkManager, getInboundExchangePatterns, getLifecycleState, getMaxDispatchersActive, getMaxRequestersActive, getMaxTotalDispatchers, getMuleContext, getMuleMessageFactory, getName, getNumberOfConcurrentTransactedReceivers, getOperationResourceFactory, getOutboundExchangePatterns, getOutputStream, getReceiver, getReceiverKey, getReceivers, getReceivers, getReceiverThreadingProfile, getReceiverWorkManager, getReplyToHandler, getRequesterFactory, getRequesterThreadingProfile, getRequesterWorkManager, getRetryPolicyTemplate, getScheduler, getServiceDescriptor, getServiceOverrides, getSessionHandler, getSupportedProtocols, getTransactionalResource, handleWorkException, initFromServiceDescriptor, initialise, initialiseFromUrl, initWorkManagers, isConnected, isConnecting, isCreateMultipleTransactedReceivers, isDisposed, isEnableMessageEvents, isInitialised, isInitialStateStopped, isResponseEnabled, isStarted, isStarting, isStopped, isStopping, isValidateConnections, lookupReceiver, registerListener, registerSupportedMetaProtocol, registerSupportedProtocol, registerSupportedProtocolWithoutPrefix, request, request, returnDispatcher, setConnected, setConnecting, setCreateMultipleTransactedReceivers, setDispatcherFactory, setDispatcherPoolFactory, setDispatcherPoolMaxWait, setDispatcherPoolWhenExhaustedAction, setDispatcherThreadingProfile, setDynamicNotification, setInitialStateStopped, setMaxDispatchersActive, setMaxRequestersActive, setName, setNumberOfConcurrentTransactedReceivers, setReceiverThreadingProfile, setRequesterFactory, setRequesterPoolMaxWait, setRequesterPoolWhenExhaustedAction, setRequesterThreadingProfile, setRetryPolicyTemplate, setServiceOverrides, setSessionHandler, setSupportedProtocols, setupDispatchReturn, setupRequestReturn, setValidateConnections, shutdownScheduler, start, startAfterConnect, stop, supportsProtocol, toString, unregisterListener, unregisterSupportedProtocol, updateCachedNotificationHandler, validateConnection, workAccepted, workCompleted, workRejected, workStarted
public static final String SMTP
public static final String DEFAULT_SMTP_HOST
public static final int DEFAULT_SMTP_PORT
public static final String DEFAULT_CONTENT_TYPE
public SmtpConnector(MuleContext context)
public String getProtocol()
public MessageReceiver createReceiver(FlowConstruct flowConstruct, InboundEndpoint endpoint) throws Exception
AbstractConnector
createReceiver
in class AbstractConnector
flowConstruct
- the service that will receive events from this receiver, the
listenerendpoint
- the endpoint that defies this inbound communicationTransportServiceDescriptor
initialised using the service and endpoint.Exception
- if there is a problem creating the receiver. This exception
really depends on the underlying transport, thus any exception
could be thrownpublic String getFromAddress()
public String getBccAddresses()
public String getCcAddresses()
public String getSubject()
public void setBccAddresses(String string)
public void setCcAddresses(String string)
public void setSubject(String string)
public void setFromAddress(String string)
public String getReplyToAddresses()
public void setReplyToAddresses(String replyTo)
public Properties getCustomHeaders()
public void setCustomHeaders(Properties customHeaders)
public String getContentType()
public void setContentType(String contentType)
public int getDefaultPort()
getDefaultPort
in class AbstractMailConnector
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.