adding ability to send mail to outside world via trusted smtp server

add example imap code

fix password