|
View:
New views
1 Messages
—
Rating Filter:
Alert me
|
|
|
Mule 2.x User Guide > SMTP TransportSMTP TransportPage edited by Jackie WheelerSMTP Transport
The SMTP transport can be used for sending messages over SMTP using the javax.mail API. See the SMTPS Transport for a secure version. The implementation supports CC/BCC/ReplyTo addresses, attachments, custom Header properties, and customizable authentication. It also provides support for javax.mail.Message transformation. The Javadoc for this transport can be found Generic SMTP(S) EndpointsSMTP endpoints describe details about the SMTP server and the recipients of messages sent from the SMTP endpoint. SMTP URIs use the following syntax: smtp://[user:password@]<smtp server>[MULE::port]?address=<recipient address> The format is the same for SMTPS - smtps://[user:password@]<smtp server>[MULE::port]?address=<recipient address>
For example: smtp://muletestbox:123456@...?address=dave@... This will send mail using smtp.mail.yahoo.co.uk (using the default SMTP port) to the address dave@.... The SMTP request is authenticated using the username muletestbox and the password 123456. You will probably want to set other information such as subject and fromAddress. These can be set as parameters on the URI, but we recommend you set them as endpoint properties to make it easier to read and maintain the configuration. So far, all configuration has been static in that you define all the information in the configuration of the endpoint. However, you can set several MailProperties to control the settings of the outgoing message. These properties will override the endpoint properties. If you always want to set the email address dynamically, you can leave out the address parameter on the SMTP endpoint. ConnectorChild Elements of <connector...>
Outbound endpointAttributes of <outbound-endpoint...>
Change Notification Preferences
View Online
|
View Change
|
Add Comment
|
| Free Forum Powered by Nabble | Forum Help |