WatchDirectory Forum
http://www.watchdirectory.net/cgi-bin/yabb25/YaBB.pl
watchDirectory forums >> Plugins >> Using the $CALL$ macro
http://www.watchdirectory.net/cgi-bin/yabb25/YaBB.pl?num=1429041466

Message started by Verne on Apr 14th, 2015 at 9:57pm

Title: Using the $CALL$ macro
Post by Verne on Apr 14th, 2015 at 9:57pm
I like this option but wish you would have taken it one step further and allowed its use in the Send email To area as well.

Right now what I do is dynamically set the email addresses Subject and body with a batch file that runs as a subtask before the email plugin.  The batch file writes an email text file to set the TO: and also uses the subject and body overrides. The email plugin is just set to read the email.txt file.

So this Call Macro takes care of two of the three things I am doing in the batch file but since it cannot do all three I will continue to use the batch file as a sub-task to create the email.txt file.

Title: Re: Using the $CALL$ macro
Post by Gert on Apr 15th, 2015 at 8:20am
Good point, I will look into this.

I will also add a variable to tell the script for what part of the email it is called:
WD_EMAIL_PART = TO (called to determine the recipients)
WD_EMAIL_PART = SUBJECT
WD_EMAIL_PART = BODY
That way you can use one script for all 3 parts of the email.

[code]ECHO johnny1@example.com > "%WD_RESULTFILE%"
ECHO TO:johnny2@example.com >> "%WD_RESULTFILE%"
ECHO CC:John^<johnny3@example.com^> >> "%WD_RESULTFILE%"[/code]


Title: Re: Using the $CALL$ macro
Post by Gert on Apr 15th, 2015 at 1:20pm
Expect a beta somewhere this weekend.

Title: Re: Using the $CALL$ macro
Post by Gert on Apr 18th, 2015 at 10:15am
Here is the beta:
http://www.watchdirectory.net/cgi-bin/yabb25/YaBB.pl?num=1429344892/0#0

WatchDirectory Forum » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2017. All Rights Reserved.