Creating a Job for sending an email with attachment in HTML format - 7.0

Mail

EnrichVersion
7.0
EnrichProdName
Talend Big Data
Talend Big Data Platform
Talend Data Fabric
Talend Data Integration
Talend Data Management Platform
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Open Studio for Big Data
Talend Open Studio for Data Integration
Talend Open Studio for ESB
Talend Open Studio for MDM
Talend Real-Time Big Data Platform
EnrichPlatform
Talend Studio
task
Data Governance > Third-party systems > Messaging components (Integration) > Mail components
Data Quality and Preparation > Third-party systems > Messaging components (Integration) > Mail components
Design and Development > Third-party systems > Messaging components (Integration) > Mail components

Procedure

  1. Create a new Job and add the following components onto the design workspace:
    • a tCreateTemporaryFile component, to create a temporary file, which will be used as the attachment
    • a tRowGenerator component, to generate some random data
    • a tFileOutputDelimited component, to write the random data in the temporary file
    • a tSendMail component, to send an email with attachment in HTML format
  2. Link the tRowGenerator component to the tFileOutputDelimited component using a Row > Main connection.
  3. Link the tCreateTemporaryFile component to the tRowGenerator component using a Trigger > On Subjob Ok connection.
  4. Link the tRowGenerator component to the tSendMail component using a Trigger > On Subjob Ok connection.