JSONify the header hash after removing unneeded values
Raise error in ActionMailer if failure