Task #255: Improve functionality of send email after user registration for event.