Wordpress Auto mailer based on triggered events