Change Email Notification Strings

English Support for Syncovery on Windows.
Post Reply
ForestCat
Posts: 7
Joined: Fri Feb 11, 2022 10:52 pm

Change Email Notification Strings

Post by ForestCat »

Hi,
I have users which simply cannot be made to understand that "can't access right path" really means that THEY HAVE NO BACKUP.
Is there a way to, for example, change "can't access right path" to "BACKUP FAILURE! CONTACT SUPPORT IMMEDIATELY" in the notification email subject?

Thanks!

tobias
Posts: 1605
Joined: Tue Mar 31, 2020 7:37 pm

Re: Change Email Notification Strings

Post by tobias »

Hello,
yes, you can add a global PascalScript on the Program Settings dialog, tab sheet Advanced, to customize emails.

Please see
https://www.syncovery.com/pascalscript/

You can use this script:

Code: Select all

function OnSendEmail(const ProfileName:UnicodeString;
                    var TheSubject:UnicodeString;
                    var HighImportance,UseDigest:Boolean;
                    var ResultSummary:UnicodeString;
                    const SomethingWasDone,ErrorHasOccurred:Boolean;
                    const FailedPathsCommaText:UnicodeString;
                    const StartedAt,EndedAt:Double;
                    var RecipientsCommaText:UnicodeString;
                    var SenderName:UnicodeString;
                    var SenderEmail:UnicodeString):Boolean;
begin
  if Pos('can''t access',TheSubject)>0 then begin
     TheSubject:='BACKUP FAILURE! CONTACT SUPPORT IMMEDIATELY';
     HighImportance:=true;
     end;
  Result:=true
  end;

ForestCat
Posts: 7
Joined: Fri Feb 11, 2022 10:52 pm

Re: Change Email Notification Strings

Post by ForestCat »

Thank you, Tobias. You are the best. Really.

Post Reply