Changed sendmail function to use new method in Customers.php