Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


Robert Pressley
2025-03-28T11:26:02Z
I have a SQL query that pulls some employee information. I have a Email Message task I created a loop around this task to iterate through each row of the query results to send an email to each employee returned from the query. Unfortunately, the only email address it is sending to is mine. To test the loop logic, I set-up a similar loop around a write file task and it successfully wrote out each email address, so I know the loop logic is correct.

I do not know if dynamic email addresses are allowed because I can see this might be a security issue. I have logged a ticket with VC. Does anyone do something similar where you've had to work around this? Thank you
Sponsor
Forum information
Robert Pressley
2025-03-28T11:31:42Z
Let me add that the emails contain specific information contained in each row for each employee, so in other words, the email body also has dynamic data soecific to the email recipient.
thomas
2025-03-28T14:00:14Z
It is definitely possible to loop over emails and send. We do this and it works fine, so there must be a bug somewhere in you setup. If you post som pics of your tasks, it may be easier to see what is going on
Robert Pressley
2025-03-28T14:56:48Z
Originally Posted by: thomas 

It is definitely possible to loop over emails and send. We do this and it works fine, so there must be a bug somewhere in you setup. If you post som pics of your tasks, it may be easier to see what is going on



Here is my set-up, very basic, photos attached:

Robert Pressley
2025-03-28T14:59:10Z
job.png
email_recipient.png
Loop_Main_Settings.png
Loop_Settings.png
thomas
2025-03-28T15:06:27Z
I think maybe you are starting the loop at the wrong task. Try start loop at the sql task
thomas
2025-03-28T15:26:36Z
Nope sorry, thats not it. Will do a test later. Long time since I set this up
thomas
2025-03-28T15:47:32Z
I tested now. it works fine for me using the same setup as you. The only thing i can think of is that maybe you have the wrong separator in the sql output?

image.png
Robert Pressley
2025-03-28T20:15:43Z
Originally Posted by: thomas 

I tested now. it works fine for me using the same setup as you. The only thing i can think of is that maybe you have the wrong separator in the sql output?

Thanks for the tip. I thought I checked that, but I will take another look at it and report back either way. Thanks again for your suggestions.

Robert Pressley
2025-03-31T12:50:05Z
This issue has been solved. My test users had rules set-up in their Outlook directing the emails to go into special folders....ughhhhh....so much for productivity over the last few days. I even asked them about that. Nevertheless, thanks to all that replied and offered tips and suggestions. Very much appreciated.
Scroll to Top