Fix for e-mails not being sent.

Hopefully I'm doing this the right way, first PR!

#32