Page 1 of 1

Change Email Notification Strings

Posted: Thu Oct 27, 2022 9:05 pm
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!

Re: Change Email Notification Strings

Posted: Thu Oct 27, 2022 9:35 pm
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;

Re: Change Email Notification Strings

Posted: Thu Oct 27, 2022 10:09 pm
by ForestCat
Thank you, Tobias. You are the best. Really.