Email notification
Moderators: chulett, rschirm, roy
Email notification
Hello,
In my requirement I need to send emails to 10 diff people with 10 diff attachments, Do I need to use 10 diff email notification stages to accomplish this? Is there a way I can minimise the no of stages being used.??
Please give your thoughts...
Thanks in advance
reddy.
In my requirement I need to send emails to 10 diff people with 10 diff attachments, Do I need to use 10 diff email notification stages to accomplish this? Is there a way I can minimise the no of stages being used.??
Please give your thoughts...
Thanks in advance
reddy.
-
- Premium Member
- Posts: 1735
- Joined: Thu Mar 01, 2007 5:44 am
- Location: Troy, MI
yes, you can minimise the numbers to 3 using startloop, endloop and 1 notification activity and parameterizing email address and attachment file name. Or to 1 by writing a routine which uses dssendmail() (this will help if you need to change the mail text too). But all depends on requirement.
Priyadarshi Kunal
Genius may have its limitations, but stupidity is not thus handicapped.![Wink :wink:](./images/smilies/icon_wink.gif)
Genius may have its limitations, but stupidity is not thus handicapped.
![Wink :wink:](./images/smilies/icon_wink.gif)
Use UserVariables to map e-mail list and attachment depending on startloop counter value. Use "If Then Else" in Expression field.
Code: Select all
If StartLoop_Activity_Email.$Counter =1 Then test1@test.com Else If StartLoop_Activity_Email.$Counter =2 Then test2@test.com ......
If StartLoop_Activity_Email.$Counter =1 Then File1(Job Parameter) Else If StartLoop_Activity_Email.$Counter =2 Then File2 ......
-
- Premium Member
- Posts: 1735
- Joined: Thu Mar 01, 2007 5:44 am
- Location: Troy, MI
think on your suggestion, can you reduce any stage?swades wrote:Use UserVariables to map e-mail list and attachment depending on startloop counter value. Use "If Then Else" in Expression field.
Code: Select all
If StartLoop_Activity_Email.$Counter =1 Then test1@test.com Else If StartLoop_Activity_Email.$Counter =2 Then test2@test.com ...... If StartLoop_Activity_Email.$Counter =1 Then File1(Job Parameter) Else If StartLoop_Activity_Email.$Counter =2 Then File2 ......
using a list loop like
test1@test.com,attachment1.txt|test2@test.com,attachment2.txt|.....
and using field function on counter will takeout your nested condition stage and also the user variable activity stage.
Priyadarshi Kunal
Genius may have its limitations, but stupidity is not thus handicapped.![Wink :wink:](./images/smilies/icon_wink.gif)
Genius may have its limitations, but stupidity is not thus handicapped.
![Wink :wink:](./images/smilies/icon_wink.gif)
I am sorry ..Now I am learning new here..so be with me...what if there are more processing stages after this notification ? how do you map for email1--> attachment1, email2--> attachment2,...so on..in notification stage?priyadarshikunal wrote:test1@test.com,attachment1.txt|test2@test.com,attachment2.txt|.....and using field function on counter will takeout your nested condition stage ...
Take advantage of the $Counter functionality of the Loop stages. This should help if you have multiple lists you need to loop through.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers