Get all the customer details by email id In Magento



Suppose we have the customer email id and we want to display all the customer details in Magento, its very easy and you can find all the customer information by using the code below:
<?php
$CustomerEmail = "customer@test.com";
$Customer = Mage::getModel("customer/customer");
$Customer->setWebsiteId(Mage::app()->getWebsite()->getId());
$Customer->loadByEmail($CustomerEmail); //load customer by email id
//use
echo $Customer->getId();
echo $Customer->getFirstName(); 
//print_r($customer->getData()); to find all the available elements.
?>

You can get the the Individual data by using the echo $Customer->getFirstName(); and you can display all the data by using the print_r(). It will returns all the available elements of the particuler customer for which you wants all the details.

Thanks and Happy coding.