I've noticed my UserProfile Birthday Schedule task now breaks in DNN 4.3.4 due to the fact that it can't get an instance of the PortalSettings with GetCurrentPortalSettings();
I think this is a new feature as previously I could send emails from the Scheduler.
"
UserProfileBirthday failed.System.NullReferenceException: Object reference not
set to an instance of an object.
at
DotNetNuke.Entities.Portals.PortalController.GetCurrentPortalSettings()
at
DotNetNuke.Services.Mail.Mail.SendMail(String MailFrom, String MailTo, String
Cc, String Bcc, MailPriority Priority, String Subject, MailFormat BodyFormat,
Encoding BodyEncoding, String Body, String "
I am aware of Joe Brinkman's blog on
getting the current context, but how do I get the PortalSettings to pass into the SendMail method in the scheduler (some sort of loop through all the Portals I guess?)