$customer = new Varien_Object(); $customer->setEmail('customer@example.com');
$order = Mage::getModel('sales/order')->load(1); $order->getCustomer()->setEmail('newemail@example.com');In this example, a sales order is loaded and the Varien_Object getEmail method is used to retrieve the email address of the customer associated with the order. The setEmail method is then used to update the customer's email address to a new value. The Varien_Object class is included in the Magento_Framework package library.