Changed mailing method to :sendmail