Email bulk fixing

Correction of var getting in bulk emails, the correct var name is "auto_email_id" but the code uses "auto_mail_id" in line 53