[IMP] raise a UserError when we try to send an email with an attachment type which is not binary.