Activity - deliverToSMTP
Activity Type: Delivery
Description
Consumes input data and delivers it by email using the Standard Mail Transfer Protocol (SMTP).
Example
Reads input data from dataSource then composes and sends an email from Joe Bloggs to Tony Blair and George Bush:
<deliverToSMTP name="delivery">
<fromLocal from="dataSource"/>
<to></to>
<to></to>
<from></from>
<subject>The data you requested</subject>
<server>smtp.bloggs.com</server>
</deliverToSMTP>
Specification
Element deliverToSMTP:
- Attribute name - unique name for the activity within the scope of a request.
-
fromLocal (required) - input stream.
- Attribute from - name of an input stream providing the data to deliver.
- Element to (one or more) - the e-mail address of a recipient of the e-mail.
- Element from (required) - the e-mail address of the sender of the e-mail.
- Element subject (required) - the subject of the e-mail.
- Element server (required) - the SMTP server to use to send the e-mail, which must be listening on port 25.
Input and Output Types
- Input: fromLocal — byte[], java.lang.String, org.w3c.dom.Node or java.lang.Object. All input data is converted into bytes and written into the email body. Node data blocks are first serialized into an XML strings, while other types of objects are converted into strings by invoking the toString() method.
Data Resource Accessor
This activity can operate with any data resource accessor.
XML Schema
OGSA-DAI/schema/ogsadai/xsd/activities/deliver_to_smtp.xsd
Class
uk.org.ogsadai.activity.delivery.DeliverToSMTPActivity
Client Toolkit Class
uk.org.ogsadai.client.toolkit.activity.delivery.DeliverToSMTP