added sendmail function (for posting to blogger)