email from query

Highlighted
Six Stars

email from query

Good day.

 

I am not even sure this is possible so I figured I would turn to the experts. I want to have Talend run a database query that includes a where clause and only returns a list of first names and email addresses.From that list, I would like to send an email to each person individually and perhaps address them by there name in the body of the email, something like:

" Hi John,

Please find attrached the picture of such and such.

 

Sincerly,

me"

 

Is this possible and if so, can one of you gurus provide me some support in setting this up?

 

Thanks for looking!


Accepted Solutions
Six Stars

Re: email from query

Hi, 

 

You could try the following. 

 

  • Create an input component relevant to your source db and filter out name and email only (in my example i used a fixedflowinput to make it easier)
  • Add a tFlowToIterate component, this will write your name/email into the global variables for each result you get
  • Add a tSendMail component after the FlowToIterate
  • User the Global Variables to fill in your email, name.

Screenshot 

 

Screen Shot 2017-10-10 at 16.59.00.png


All Replies
Six Stars

Re: email from query

Hi, 

 

You could try the following. 

 

  • Create an input component relevant to your source db and filter out name and email only (in my example i used a fixedflowinput to make it easier)
  • Add a tFlowToIterate component, this will write your name/email into the global variables for each result you get
  • Add a tSendMail component after the FlowToIterate
  • User the Global Variables to fill in your email, name.

Screenshot 

 

Screen Shot 2017-10-10 at 16.59.00.png

Ten Stars

Re: email from query

Include \n in the Message body to create a multiline email.
Six Stars

Re: email from query

Excellent! I love this board. You guys are some of the most helpful people in the industry.

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Put Massive Amounts of Data to Work

Learn how to make your data more available, reduce costs and cut your build time

Watch Now

How OTTO Utilizes Big Data to Deliver Personalized Experiences

Read about OTTO's experiences with Big Data and Personalized Experiences

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog