Send email notification

Discuss new features and functions
Posts: 68
Joined: 13 Aug 2018

TheExpert

Yes, this is possible. But again, you can't be sure that the script has finished before the computer is shutting down. And the shutdown is then always waiting the delay time even if it's not needed. For example when the sync is successful and the mail script doesn't have to search for errors in the log files.

For me it's OK if you set the shutdown in the FFS batch. This is very easy because you even don't need to write a script. But it may be not the best solution under all circumstances.
Posts: 11
Joined: 10 Aug 2021

bdum

How to set in the ffs batch? Shutdown with delay?
User avatar
Posts: 2272
Joined: 22 Aug 2012

Plerry

At the bottom of the Synchronization Settings (F8) in the FFS GUI you find the "Run a command" option, where you select the condition to run the command, and to specify the command.
Posts: 3
Joined: 25 Nov 2021

grovebaby

we use blat (command line smtp sender)
the next line in bat file after FFS is blat, which sends log.
that's it teymur-bagirov, 14 Nov 2015, 12:24
Hi, you still around. I tried to download BLAT, but get a Sandbox malware warning from our ZScaler sw.
Posts: 19
Joined: 8 Nov 2018

sagitario

Hi,
Is there any way for the script to accept special characters, such as "ã". I'm trying to translate to Portuguese, but it doesn't accept some words that have special characters.
Thanks,
Posts: 19
Joined: 8 Nov 2018

sagitario

Hi,
Is there any way for the script to accept special characters, such as "ã". I'm trying to translate to Portuguese, but it doesn't accept some words that have special characters.
Thanks, sagitario, 11 Apr 2022, 17:25
Ok, I managed to get the texts in the script to appear correctly by saving the script in ANSI format instead of UTF8 format. I don't know if it's the perfect solution, but it partially solved the problem. However, in the list of errors, the crazy characters still appear. When consulting the TXT log file, the text is show correct, even though the log file is in UTF8 format. Is it possible for the characters to all appear correctly?

Thanks,
Posts: 5
Joined: 16 Nov 2022

alefello

Hello everybody

I've two small problems with this script.

1st: I'm using it on many PCs and servers, with gmail as mail server, without an issue, but on a server with Windows Server 2022 it doesn't work. I suspect something is wrong in my configuration or in the server configuration, but even enabling debug in the script I can't find what's wrong. Do you have any suggestion how to debug the problem?

2nd: I red (maybe wrong) that if I enable the simple text logs the script is able to report in the email the warning or error lines. Well, I enabled simple text logs in FreeFileSync options ant the logs are correctly saved in simple text *.log format, but I still receive the emails with only error or warning in the subject, but no log warning/error lines in the text. Do you have any advice?

Thank you!
Posts: 68
Joined: 13 Aug 2018

TheExpert

Regarding Windows Server 2022: I don't have an idea. Check the firewall settings regarding open ports for outgoing traffic for SMTP and SMTPS. Set the logging option for blocked connections in a file for the firewall. So you can see if there's a blocked connection by the firewall. Or there are security settings regarding VBScript.

Regarding log files: Yes, you're right. The script can only parse the text based log files of FreeFileSync and not the html logs. Have a look at the path where you save the log files. Is the same path set in the script? With the debug switch in the script you should see if the script is finfing and parsing the log files.
Posts: 5
Joined: 16 Nov 2022

alefello

Regarding Windows Server 2022: I don't have an idea. Check the firewall settings regarding open ports for outgoing traffic for SMTP and SMTPS. Set the logging option for blocked connections in a file for the firewall. So you can see if there's a blocked connection by the firewall. Or there are security settings regarding VBScript.TheExpert, 04 Aug 2023, 10:27
I'll check but I don't know if that's so simple cause in tebug mode I can see the sending email lines without errors o retrying
Regarding log files: Yes, you're right. The script can only parse the text based log files of FreeFileSync and not the html logs. Have a look at the path where you save the log files. Is the same path set in the script? With the debug switch in the script you should see if the script is finfing and parsing the log files. TheExpert, 04 Aug 2023, 10:27
The log file path is red in the batch ffs file. Could it be cause FFS switched from english to italian for the file language whei I switched from HTML logs to Text logs?
Posts: 68
Joined: 13 Aug 2018

TheExpert

Oh, you switched from English to Italian? Then the log entries are probably Italian, too. So you have to change it in the script. There you find entries for English and German. Here you have to set the Italian wordings so that the script can find the log lines with errors or warnings.