Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved


Chapter 10 Mail Palette : Send Mail

Send Mail
Activity
The Send Mail activity sends an email by way of a SMTP server.
Configuration
The Configuration tab has the following fields.
<hostName>:<portNumber>
For example, myMailServer.myCo.com:37
Note: The mail server must be configured to require authentication for sending mail. If the mail server is not configured to require authentication, the Authentication Type field is ignored.
If you select Basic Authentication, then the User Name and Password fields appear.
If you select OAuth 2.0, then the User Name and Access Token Value fields appear.
Note: You can obtain the field information for Access Token Value, User Name, and Password from a Service Provider.
Configure SSL Button
The Configure SSL button allows you to configure the SSL parameters when the transport supports SSL. Check SSL to display Configre SSl dialog. Provide values in the following fields to configure SSL.
See TIBCO Designer Palette Reference for more information.
Support for STARTTLS
Some Mail servers (such as Microsoft Exchange 2010 ) support SMTP over SSL using the STARTTLS feature. TIBCO ActiveMatrix BusinessWorks supports this using the property, "bw.plugin.mail.enableStartTLS," which is set to default as "false". Select the 'Use SSL' check box when using such servers and provide the Trusted Certificates folder.
When not using such servers, provide this engine property for SMTP with value as "false".
Advanced
The Advanced tab has the following fields.
For more information about email address syntax, see http://www.faqs.org/rfcs/rfc822.html.
Note: When this field is unchecked, not all of the RFC 822 syntax rules are enforced. For example, addresses composed of simple names (with no "@domain" part) are allowed. For more information on enforcing RFC 822, see the description of the strict flag of the parse method of javax.mail.internet.InternetAddress at http://java.sun.com/products/javamail/javadocs/javax/mail/internet/InternetAddress.html.
Input Headers
You may want to add custom headers to outgoing mail messages. The Input Headers tab allows you to define a custom schema for the headers of the outgoing mail message. You can specify any standard header supported by the javax.mail package. For example, X-Mailer or X-Priority.
See Appendix A, Specifying Data Schema for a complete description of using the Input Headers tab.
Input
See TIBCO ActiveMatrix BusinessWorks Process Design for more information about mapping and transforming input data.
The input for the activity is the following.
Note: The mail server must be configured to require authentication for sending mail. If the mail server is not configured to require authentication, the username and password elements are ignored.
Note: The email server supplies the actual date stamp for the email, so this input item is ignored. This item is deprecated and may be removed in a future release. Do not attempt to place a value in this input item.
This element contains the schema you defined on the Input Headers tab. You can specify custom headers for outgoing mail messages.
You can specify any standard header supported by the javax.mail package. For example, X-Mailer or X-Priority.
content-disposition — To suggest a filename for an attachment, use "*;filename=<filename>" in this element. Note: E-mail servers may alter or choose to ignore the suggested name.
See http://www.faqs.org/rfcs/rfc2045.html for more information about MIME headers and their syntax.
Note: When the content type is specified as "text/*" (for example, "text/xml"), the attachment content is expected to be in either the textContent input element or the file name storing the attachment is expected to be in the fileName input element. When the content type is anything other than "text/*", the attachment content is expected to be in either the binaryContent input element or the file name storing the attachment is expected to be in the fileName input element.
Note: The attachmentNames and attachmentData elements are corresponding lists. That is, for each item in the attachmentName element, there must be a corresponding item in the same position in the attachementData list. For example, if there are three attachments, both elements must contain three items and item in the attachmentNames element corresponds to the element in the same position in the attachmentData list.
 
Output
This activity produces no output.
Error Output
The Error Output tab lists the possible exceptions that can be thrown by this activity. See TIBCO ActiveMatrix BusinessWorks Error Codes for more information about error codes and corrective action to take.

Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved