Mail and log

Which i can send an email when an event log appared???
Where i set the smtp server???
Thank’s

‘tool e-mail set server=’ to specify remote SMTP server.