triggering emails on registration during checkout