WatchDirectory home page
WatchDirectory Startseite (Deutsche Version)
Site WatchDirectory (Français)
  Welcome, Guest. Please Login or Register
YaBB - Yet another Bulletin Board
   
  HomeHelpSearchLoginRegister  
 
Page Index Toggle Pages: 1
Using the $CALL$ macro (Read 1906 times)
Verne
Junior Member
**
Offline



Posts: 50
Using the $CALL$ macro
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.
Back to top
 
 
IP Logged
 
Gert
YaBB Administrator
*****
Offline



Posts: 2239
The Netherlands
Re: Using the $CALL$ macro
Reply #1 - 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%" 



Back to top
 

Gert Rijs - gert (at) gdpsoftware (dot) com
Blog: http://blog-en.gdpsoftware.com/
End Alzheimer's: http://www.alz.org&&...
WWW WWW GdPSoftware  
IP Logged
 
Gert
YaBB Administrator
*****
Offline



Posts: 2239
The Netherlands
Re: Using the $CALL$ macro
Reply #2 - Apr 15th, 2015 at 1:20pm
 
Expect a beta somewhere this weekend.
Back to top
 

Gert Rijs - gert (at) gdpsoftware (dot) com
Blog: http://blog-en.gdpsoftware.com/
End Alzheimer's: http://www.alz.org&&...
WWW WWW GdPSoftware  
IP Logged
 
Gert
YaBB Administrator
*****
Offline



Posts: 2239
The Netherlands
Re: Using the $CALL$ macro
Reply #3 - Apr 18th, 2015 at 10:15am
 
Back to top
 

Gert Rijs - gert (at) gdpsoftware (dot) com
Blog: http://blog-en.gdpsoftware.com/
End Alzheimer's: http://www.alz.org&&...
WWW WWW GdPSoftware  
IP Logged
 
Page Index Toggle Pages: 1