adding preflight hook for html emails