Skip to main content
deleted 4 characters in body
Source Link
Newbie
  • 1.6k
  • 6
  • 29
  • 47

I am trying to send this email in this observer customer_register_success

My code:

$customer = $observer->getEvent()->getCustomer();
$session = Mage::getSingleton('customer/session');
            $storeId = $customer->getSendemailStoreId();
            $customer->setConfirmation(false1); //confirmation needed to register?
            $customer->save(); //yes, this is also needed
            $customer->sendNewAccountEmail('confirmation',$session->getBeforeAuthUrl(),$storeId); //send confirmation email to customer?
$session->logout();

Mail is sending but customer is set as confirmed but i want to set as not confirmed

I am trying to send this email in this observer customer_register_success

My code:

$customer = $observer->getEvent()->getCustomer();
$session = Mage::getSingleton('customer/session');
            $storeId = $customer->getSendemailStoreId();
            $customer->setConfirmation(false); //confirmation needed to register?
            $customer->save(); //yes, this is also needed
            $customer->sendNewAccountEmail('confirmation',$session->getBeforeAuthUrl(),$storeId); //send confirmation email to customer?
$session->logout();

Mail is sending but customer is set as confirmed but i want to set as not confirmed

I am trying to send this email in this observer customer_register_success

My code:

$customer = $observer->getEvent()->getCustomer();
$session = Mage::getSingleton('customer/session');
            $storeId = $customer->getSendemailStoreId();
            $customer->setConfirmation(1); //confirmation needed to register?
            $customer->save(); //yes, this is also needed
            $customer->sendNewAccountEmail('confirmation',$session->getBeforeAuthUrl(),$storeId); //send confirmation email to customer?
$session->logout();

Mail is sending but customer is set as confirmed but i want to set as not confirmed

added 70 characters in body; edited title
Source Link
Newbie
  • 1.6k
  • 6
  • 29
  • 47

How to send confirmation email to customer and set as not confirmed customer in magento programmatically

I am trying to send this email in this observer customer_register_success

My code:

$customer = $observer->getEvent()->getCustomer();
$session = Mage::getSingleton('customer/session');
            $storeId = $customer->getSendemailStoreId();
            $customer->setConfirmation(truefalse); //confirmation needed to register?
            $customer->save(); //yes, this is also needed
            $customer->sendNewAccountEmail('confirmation',$session->getBeforeAuthUrl(),$storeId); //send confirmation email to customer?
$session->logout();

Mail is sending but emailcustomer is set as confirmed but i want to set as not send. What is my mistakeconfirmed

How to send confirmation email to customer in magento programmatically

I am trying to send this email in this observer customer_register_success

My code:

$customer = $observer->getEvent()->getCustomer();
$session = Mage::getSingleton('customer/session');
            $storeId = $customer->getSendemailStoreId();
            $customer->setConfirmation(true); //confirmation needed to register?
            $customer->save(); //yes, this is also needed
            $customer->sendNewAccountEmail('confirmation',$session->getBeforeAuthUrl(),$storeId); //send confirmation email to customer?

but email is not send. What is my mistake

How to send confirmation email to customer and set as not confirmed customer in magento programmatically

I am trying to send this email in this observer customer_register_success

My code:

$customer = $observer->getEvent()->getCustomer();
$session = Mage::getSingleton('customer/session');
            $storeId = $customer->getSendemailStoreId();
            $customer->setConfirmation(false); //confirmation needed to register?
            $customer->save(); //yes, this is also needed
            $customer->sendNewAccountEmail('confirmation',$session->getBeforeAuthUrl(),$storeId); //send confirmation email to customer?
$session->logout();

Mail is sending but customer is set as confirmed but i want to set as not confirmed

Source Link
Newbie
  • 1.6k
  • 6
  • 29
  • 47

How to send confirmation email to customer in magento programmatically

I am trying to send this email in this observer customer_register_success

My code:

$customer = $observer->getEvent()->getCustomer();
$session = Mage::getSingleton('customer/session');
            $storeId = $customer->getSendemailStoreId();
            $customer->setConfirmation(true); //confirmation needed to register?
            $customer->save(); //yes, this is also needed
            $customer->sendNewAccountEmail('confirmation',$session->getBeforeAuthUrl(),$storeId); //send confirmation email to customer?

but email is not send. What is my mistake