Sending notification and confirmation emails on submissions is not working