added extra header configuration for smtp writer