Emails not being sent

I have a test 11.1.20 running. Everything is working except it wont send email notifications. It will send via the Test button, but not when the job runs.

I am using the gmail option. I have the Advanced logging turned and hit the send to devs button.

1 Like

Thank you for the log file, we have checked it. There are no error messages in your log, all the emails have been sent. Could you please check your spam folder?

Im having the same issue.

but shows the error

Canā€™t send email to xxxxx: Errors while compiling a template.

I have versoin 11.1.21 and using GMAIL accounts

I have exactly the same - only started today.
Test emails work fine (to our own Exchange 2010 server)

Ver 11.1.21

Canā€™t send email to **@..: Errors while compiling a Template.
Please try the following to solve the situation:

  • If the problem is about missing/invalid references or multiple defines either try to load
    the missing references manually (in the compiling appdomain!) or
    Specify your references manually by providing your own IReferenceResolver implementation.
    See https://antaris.github.io/RazorEngine/ReferenceResolver.html for details.
    Currently all references have to be available as files!
  • If you get ā€˜classā€™ does not contain a definition for ā€˜memberā€™:
    try another modelType (for example ā€˜nullā€™ to make the model dynamic).
    NOTE: You CANNOT use typeof(dynamic) to make the model dynamic!
    Or try to use static instead of anonymous/dynamic types.
    More details about the error:
  • error: (303, 51) ā€˜SBF.Channel.Contract.DataContract.JobLogRecordā€™ does not contain a definition for ā€˜Templateā€™ and no extension method ā€˜Templateā€™ accepting a first argument of type ā€˜SBF.Channel.Contract.DataContract.JobLogRecordā€™ could be found (are you missing a using directive or an assembly reference?)
    • error: (304, 70) ā€˜SBF.Channel.Contract.DataContract.JobLogRecordā€™ does not contain a definition for ā€˜Templateā€™ and no extension method ā€˜Templateā€™ accepting a first argument of type ā€˜SBF.Channel.Contract.DataContract.JobLogRecordā€™ could be found (are you missing a using directive or an assembly reference?)
      Temporary files of the compilation can be found in (please delete the folder): C:\Windows\TEMP\RazorEngine_hoaldxfg.2o1
      The template we tried to compile is:

and it continues for about 600 lines of source code!

I just sent a ā€œadvanced logā€ to you Dev team.

Thank you for the details.

This issue has been fixed in the latest version of SQLBackupAndFTP - version 11.1.22. You can download it at https://sqlbackupandftp.com/download or run your SQLBackupAndFTP application and click ā€œHelpā€ > ā€œCheck for Updateā€¦ā€

Sorry for the inconvenience.

Getting this error after backup, on email delivery:-

6/11/2020 9:49:07 AM [Error] Canā€™t send email to xyz@gmail.com: Errors while compiling a Template.
Please try the following to solve the situation:

  • If the problem is about missing/invalid references or multiple defines either try to load
    the missing references manually (in the compiling appdomain!) or
    Specify your references manually by providing your own IReferenceResolver implementation.
    See https://antaris.github.io/RazorEngine/ReferenceResolver.html for details.
    Currently all references have to be available as files!
  • If you get ā€˜classā€™ does not contain a definition for ā€˜memberā€™:
    try another modelType (for example ā€˜nullā€™ to make the model dynamic).
    NOTE: You CANNOT use typeof(dynamic) to make the model dynamic!
    Or try to use static instead of anonymous/dynamic types.
    More details about the error:
  • error: (145, 3) The type ā€˜System.Objectā€™ is defined in an assembly that is not referenced. You must add a reference to assembly ā€˜System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3aā€™.
    Temporary fiā€¦

Running version 12.3.11 Professional License

Hi Jagjeet_Singh,

We have checked the issue, and it seems itā€™s related to one of the libraries you use. Could you please install the latest .NET Framework or use Microsoft .NET Framework Repair Tool.

Sorry for the inconvenience.

Another WEAK answer! you subscribers really use this?

Hi RK1,

Thank you for your message.

Could you please let us know, what doesnā€™t work for you? Have you faced any issues? If yes, please send us the full text of the error message you have and a screenshot of the issue.

If you have the same issue as the customers above, please:

  1. make sure you use the latest release of SQLbackuoAndFTP https://sqlbackupandftp.com/download
  2. Please install the latest .NET Framework or use Microsoft .NET Framework Repair Tool https://dotnet.microsoft.com/download/dotnet-framework/net472

If there is anything else we can help you with, please let us know.

Sorry for the inconvenience.