send_email now takes a hash and will silently fail when passed nothing for prototyping error events