Add function for logging and sending email
We now write to the log when queueing an email. This will make it easier to troubleshoot when an email has not been sent.
We now write to the log when queueing an email. This will make it easier to troubleshoot when an email has not been sent.