send email function $email_for_admin = Mage::getStoreConfig('trans_email/ident_general/email'); //fetch sender email Admin $from_name = Mage::getStoreConfig('trans_email/ident_general/name'); $email_subject_for_admin = "New Trade Customer Registerd"; $adminContent='Congratulations, a new customer has been registered:

Name : '.$customer->getName().'
Email : '.$customer->getEmail().'
Telephone : '.$this->getRequest()->getPost('telephone').''; $mail = Mage::getModel('core/email'); $mail->setToName($from_name); $mail->setToEmail($email_for_admin); $mail->setBody($adminContent); $mail->setSubject($email_subject_for_admin); $mail->setFromEmail($email_for_admin); $mail->setFromName($from_name); $mail->setType('html');// YOu can use Html or text as Mail format try { $mail->send(); } catch (Exception $e) { Mage::getSingleton('core/session')->addError('Unable to send.'); }

Get Your 5 FREE Samples

Find your ideal panels and simply click the ‘ORDER FREE SAMPLE’ button

  • Samples Available For All Products
  • Easy 60 Second Checkout
  • No Payment Required