added smarterror event
fixed mail send, added a switch for event
updated readme