Fix incorrect reverse call in email generation