Assign email address by script

Post Reply
major
Newbie
Posts: 8
Joined: Mon May 22, 2017 9:17 am

Assign email address by script

Post by major »

Hello.
I'm looking for a script that would assign an email address to job.

I'v some jobs which I have to (after passing the flow) send by mail to different addresses according first three signs of input filename:

aaa_xxxx.pdf -> mail1@domain.org
aab_xxx.pdf -> mail2@domain.org
anything_else.pdf -> don't attach address

Best regards and Thanks for any response,

Major
loicaigon
Advanced member
Posts: 633
Joined: Wed Jul 10, 2013 10:22 am

Re: Assign email address by script

Post by loicaigon »

Depending on how many scenarios you have to dela with, you may achieve this out of a script with simple sorting.
However I agree a script is convenient.

Here is the script:
http://support.ozalto.com/downloads/Add ... Script.zip
And here some screenshots
Image
Image
Loïc Aigon
Enfocus PitStop Manager
major
Newbie
Posts: 8
Joined: Mon May 22, 2017 9:17 am

Re: Assign email address by script

Post by major »

Thank You very much.
It works, if I insert these, generated by script, private data to "To addresses" row in SendMail config.
Best Regards
loicaigon
Advanced member
Posts: 633
Joined: Wed Jul 10, 2013 10:22 am

Re: Assign email address by script

Post by loicaigon »

Glad it helped. If it was me, I would have use an external data file that the script would load. That would allow you to increment the list out of switch.
Loïc Aigon
Enfocus PitStop Manager
Corporate films
Newbie
Posts: 2
Joined: Tue Apr 10, 2018 10:19 am

Re: Assign email address by script

Post by Corporate films »

You can also use this to assign email address by scripting in easy steps.
Corporate Film Makers

Thanks
trafford
Newbie
Posts: 1
Joined: Fri May 04, 2018 8:59 am

Re: Assign email address by script

Post by trafford »

Thanks, loicaigon! It works!
Post Reply