WatchDirectory Forum
http://www.watchdirectory.net/cgi-bin/yabb25/YaBB.pl
watchDirectory forums >> Plugins >> Email after upload files complete
http://www.watchdirectory.net/cgi-bin/yabb25/YaBB.pl?num=1474087389

Message started by Neng on Sep 17th, 2016 at 6:43am

Title: Email after upload files complete
Post by Neng on Sep 17th, 2016 at 6:43am
When using the Upload Files plugin, is it possible to send an email after completion?  If so how?

Title: Re: Email after upload files complete
Post by Gert on Sep 17th, 2016 at 8:28am
You can use the subtask plugin for that. 1st subtask is your upload, 2nd subtask the email. See http://www.watchdirectory.net/wdhelp/plugins/wdopMultiPlugin.html

Title: Re: Email after upload files complete
Post by Neng on Sep 17th, 2016 at 6:40pm
Thanks for the prompt reply.  I have the Upload Files plugin working as expected. However, the Send Email plug isn't. I'm not sure what I am missing, but here is my scenario.

Directory structure
C:\Data\Inbox\Processed

As soon as PDF files are placed in the Inbox folder, the Upload Files plugin SFTP the PDF files to a remote destination.  Then move the PDF files to the Processed folder after completion.  Again this process works fine.

The Send Email plugin then sends an email confirmation. However, this process does not work.

The directory to monitored for change is C:\Data\Inbox

Matching file format is *.pdf
I have tried checking the option Masks have reversed meaning, but the result is the same.

Please advise. Thanks in advance.

Title: Re: Email after upload files complete
Post by Gert on Sep 18th, 2016 at 7:24am
Can you enable "debug" for your task, run it for one file and send (email!) me a backup to look at. Also let me know the name of the file you used to test with.
Details about "debug" can be found here: http://blog-en.gdpsoftware.com/2010/06/send-task-backup-to-support.html

Title: Re: Email after upload files complete
Post by Neng on Sep 19th, 2016 at 7:26pm
What's your email address?

Title: Re: Email after upload files complete
Post by Gert on Sep 20th, 2016 at 8:18am
gert @ gdpsoftware . com

Title: Re: Email after upload files complete
Post by Neng on Sep 20th, 2016 at 4:17pm
Backup file sent.

Title: Re: Email after upload files complete
Post by Gert on Sep 21st, 2016 at 7:44am
I looked at your task, you have it set to run only 1 subtask, see attached. You need to change that option to another.
subtasks.png (19 KB | 75 )

Title: Re: Email after upload files complete
Post by Neng on Sep 21st, 2016 at 4:52pm
That was it.  I changed it to "Run All SubTasks - Stop on Failure" and email notification is working now. This option also appears to run in sequential order which is what I needed.

Thanks for all your help!

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