SMTP function added for sending out an email report --kazu