handle insufficent params when sending email better