Skip to content

Commit

Permalink
Merge pull request #36 from zachricha/fix-notifications
Browse files Browse the repository at this point in the history
Log exceptions from emailing
  • Loading branch information
skamphuis authored Oct 28, 2020
2 parents 404057d + fb9acfa commit 087de2a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Components/EmailTemplateController.vb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Imports Dotnetnuke.Entities.Portals
Imports Dotnetnuke.Entities.Users
Imports DotNetNuke.Framework
Imports DotNetNuke.Security.Roles
Imports DotNetNuke.Services.Exceptions

Namespace Ventrian.NewsArticles

Expand Down Expand Up @@ -289,7 +290,8 @@ Namespace Ventrian.NewsArticles
' SendNotification(settings.Email, sendTo, Null.NullString, subject, template)
Try
DotNetNuke.Services.Mail.Mail.SendMail(settings.Email, sendTo, "", subject, template, "", "", "", "", "", "")
Catch
Catch exc As Exception
LogException(exc)
End Try

End Sub
Expand Down

0 comments on commit 087de2a

Please sign in to comment.