Magento send custom mail to custom person after Place OrderMagento send new order mail when order is created but not paidSend mail after place orderSend Invoice mail to customerSend mail with Shopping Cart ItemsMagento error after clicking Place orderSend automatic mail after completed orderCustom send mail after place orderSimple Observer not firing on eventWelcome Mail send with wrong store_idMagento 1.9xx - Mail failure - malformed recipient address
How much character growth crosses the line into breaking the character
Is camera lens focus an exact point or a range?
On a tidally locked planet, would time be quantized?
Hot bath for aluminium engine block and heads
Is it improper etiquette to ask your opponent what his/her rating is before the game?
Two-sided logarithm inequality
Open a doc from terminal, but not by its name
Did US corporations pay demonstrators in the German demonstrations against article 13?
Should I install hardwood flooring or cabinets first?
Is it possible to have a strip of cold climate in the middle of a planet?
Difference between -| and |- in TikZ
Customize circled numbers
Has Darkwing Duck ever met Scrooge McDuck?
What's the difference between 違法 and 不法?
When quoting, must I also copy hyphens used to divide words that continue on the next line?
We have a love-hate relationship
Gibbs free energy in standard state vs. equilibrium
Bob has never been a M before
Journal losing indexing services
Filling the middle of a torus in Tikz
How do you respond to a colleague from another team when they're wrongly expecting that you'll help them?
Global amount of publications over time
Can the Supreme Court overturn an impeachment?
Is a file system driver implemented using a kernel module in Linux?
Magento send custom mail to custom person after Place Order
Magento send new order mail when order is created but not paidSend mail after place orderSend Invoice mail to customerSend mail with Shopping Cart ItemsMagento error after clicking Place orderSend automatic mail after completed orderCustom send mail after place orderSimple Observer not firing on eventWelcome Mail send with wrong store_idMagento 1.9xx - Mail failure - malformed recipient address
Magento How to send a mail to a custom person after Place order
I tried below code in observer.php but it's not working
<?php
class Manoj_Customemail_Model_Observer
public function customMail($event)
$order = $event->getOrder();
//add your mail send code here
$html="put your html content here blah blah";
$mail = Mage::getModel('core/email');
$mail->setToName('Your Name');
$mail->setToEmail('mymail@gmail.com');
$mail->setBody('Mail Text / Mail Content');
$mail->setSubject('Mail Subject');
$mail->setFromEmail('Sender Mail Id');
$mail->setFromName("Msg to Show on Subject");
$mail->setType('html');// YOu can use Html or text as Mail format
try
$mail->send();
confix.xml
<?xml version="1.0"?>
<config>
<modules>
<Manoj_Customemail>
<version>0.1.0</version>
</Manoj_Customemail>
</modules>
<global>
<helpers>
<customemail>
<class>Manoj_Customemail_Helper</class>
</customemail>
</helpers>
<models>
<customemail>
<class>Manoj_Customemail_Model</class>
</customemail>
</models>
<events>
<sales_order_place_after>
<observers>
<sales_order_observer>
<type>singleton</type>
<class>Manoj_Customemail_Model_Observer</class>
<method>customMail</method>
</sales_order_observer>
</observers>
</sales_order_place_after>
</events>
</global>
</config>
After Place order it redirect to cart page
magento-1.9 checkout transactional-mail
bumped to the homepage by Community♦ 10 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
Magento How to send a mail to a custom person after Place order
I tried below code in observer.php but it's not working
<?php
class Manoj_Customemail_Model_Observer
public function customMail($event)
$order = $event->getOrder();
//add your mail send code here
$html="put your html content here blah blah";
$mail = Mage::getModel('core/email');
$mail->setToName('Your Name');
$mail->setToEmail('mymail@gmail.com');
$mail->setBody('Mail Text / Mail Content');
$mail->setSubject('Mail Subject');
$mail->setFromEmail('Sender Mail Id');
$mail->setFromName("Msg to Show on Subject");
$mail->setType('html');// YOu can use Html or text as Mail format
try
$mail->send();
confix.xml
<?xml version="1.0"?>
<config>
<modules>
<Manoj_Customemail>
<version>0.1.0</version>
</Manoj_Customemail>
</modules>
<global>
<helpers>
<customemail>
<class>Manoj_Customemail_Helper</class>
</customemail>
</helpers>
<models>
<customemail>
<class>Manoj_Customemail_Model</class>
</customemail>
</models>
<events>
<sales_order_place_after>
<observers>
<sales_order_observer>
<type>singleton</type>
<class>Manoj_Customemail_Model_Observer</class>
<method>customMail</method>
</sales_order_observer>
</observers>
</sales_order_place_after>
</events>
</global>
</config>
After Place order it redirect to cart page
magento-1.9 checkout transactional-mail
bumped to the homepage by Community♦ 10 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
do you have a fix custom id or it may be change ?
– Ashish Madankar
Jun 23 '16 at 14:10
Sorry i am not getting
– Magento 2
Jun 23 '16 at 14:13
trypublic function customMail(Varien_Event_Observer $observer)in place ofpublic function customMail($event)
– Ashish Madankar
Jun 24 '16 at 4:59
Still same it redirect to shopping cart only
– Magento 2
Jun 24 '16 at 12:25
add a comment |
Magento How to send a mail to a custom person after Place order
I tried below code in observer.php but it's not working
<?php
class Manoj_Customemail_Model_Observer
public function customMail($event)
$order = $event->getOrder();
//add your mail send code here
$html="put your html content here blah blah";
$mail = Mage::getModel('core/email');
$mail->setToName('Your Name');
$mail->setToEmail('mymail@gmail.com');
$mail->setBody('Mail Text / Mail Content');
$mail->setSubject('Mail Subject');
$mail->setFromEmail('Sender Mail Id');
$mail->setFromName("Msg to Show on Subject");
$mail->setType('html');// YOu can use Html or text as Mail format
try
$mail->send();
confix.xml
<?xml version="1.0"?>
<config>
<modules>
<Manoj_Customemail>
<version>0.1.0</version>
</Manoj_Customemail>
</modules>
<global>
<helpers>
<customemail>
<class>Manoj_Customemail_Helper</class>
</customemail>
</helpers>
<models>
<customemail>
<class>Manoj_Customemail_Model</class>
</customemail>
</models>
<events>
<sales_order_place_after>
<observers>
<sales_order_observer>
<type>singleton</type>
<class>Manoj_Customemail_Model_Observer</class>
<method>customMail</method>
</sales_order_observer>
</observers>
</sales_order_place_after>
</events>
</global>
</config>
After Place order it redirect to cart page
magento-1.9 checkout transactional-mail
Magento How to send a mail to a custom person after Place order
I tried below code in observer.php but it's not working
<?php
class Manoj_Customemail_Model_Observer
public function customMail($event)
$order = $event->getOrder();
//add your mail send code here
$html="put your html content here blah blah";
$mail = Mage::getModel('core/email');
$mail->setToName('Your Name');
$mail->setToEmail('mymail@gmail.com');
$mail->setBody('Mail Text / Mail Content');
$mail->setSubject('Mail Subject');
$mail->setFromEmail('Sender Mail Id');
$mail->setFromName("Msg to Show on Subject");
$mail->setType('html');// YOu can use Html or text as Mail format
try
$mail->send();
confix.xml
<?xml version="1.0"?>
<config>
<modules>
<Manoj_Customemail>
<version>0.1.0</version>
</Manoj_Customemail>
</modules>
<global>
<helpers>
<customemail>
<class>Manoj_Customemail_Helper</class>
</customemail>
</helpers>
<models>
<customemail>
<class>Manoj_Customemail_Model</class>
</customemail>
</models>
<events>
<sales_order_place_after>
<observers>
<sales_order_observer>
<type>singleton</type>
<class>Manoj_Customemail_Model_Observer</class>
<method>customMail</method>
</sales_order_observer>
</observers>
</sales_order_place_after>
</events>
</global>
</config>
After Place order it redirect to cart page
magento-1.9 checkout transactional-mail
magento-1.9 checkout transactional-mail
edited Jun 23 '16 at 14:40
Magento 2
asked Jun 23 '16 at 13:25
Magento 2Magento 2
2,43472875
2,43472875
bumped to the homepage by Community♦ 10 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 10 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
do you have a fix custom id or it may be change ?
– Ashish Madankar
Jun 23 '16 at 14:10
Sorry i am not getting
– Magento 2
Jun 23 '16 at 14:13
trypublic function customMail(Varien_Event_Observer $observer)in place ofpublic function customMail($event)
– Ashish Madankar
Jun 24 '16 at 4:59
Still same it redirect to shopping cart only
– Magento 2
Jun 24 '16 at 12:25
add a comment |
do you have a fix custom id or it may be change ?
– Ashish Madankar
Jun 23 '16 at 14:10
Sorry i am not getting
– Magento 2
Jun 23 '16 at 14:13
trypublic function customMail(Varien_Event_Observer $observer)in place ofpublic function customMail($event)
– Ashish Madankar
Jun 24 '16 at 4:59
Still same it redirect to shopping cart only
– Magento 2
Jun 24 '16 at 12:25
do you have a fix custom id or it may be change ?
– Ashish Madankar
Jun 23 '16 at 14:10
do you have a fix custom id or it may be change ?
– Ashish Madankar
Jun 23 '16 at 14:10
Sorry i am not getting
– Magento 2
Jun 23 '16 at 14:13
Sorry i am not getting
– Magento 2
Jun 23 '16 at 14:13
try
public function customMail(Varien_Event_Observer $observer) in place of public function customMail($event)– Ashish Madankar
Jun 24 '16 at 4:59
try
public function customMail(Varien_Event_Observer $observer) in place of public function customMail($event)– Ashish Madankar
Jun 24 '16 at 4:59
Still same it redirect to shopping cart only
– Magento 2
Jun 24 '16 at 12:25
Still same it redirect to shopping cart only
– Magento 2
Jun 24 '16 at 12:25
add a comment |
2 Answers
2
active
oldest
votes
You need to observe below event
<events>
<sales_order_place_after>
<observers>
<sales_order_observer>
<type>singleton</type>
<class>Namespace_Modulename_Model_Observer</class>
<method>customMail</method>
</sales_order_observer>
</observers>
</sales_order_place_after>
</events>
Create your observer as below:
class Namespace_Modulename_Model_Observer
public function customMail($event)
$order = $event->getOrder();
//add your mail send code here
check my updated question
– Magento 2
Jun 23 '16 at 14:32
add a comment |
You can create a simple magento extension that contains an observer on sales_order_place_after event and then you can use zend_mail to send a custom email. Something like
$fromEmail = "from@example.com"; // sender email address
$fromName = "John Doe"; // sender name
$toEmail = "to@example.com"; // recipient email address
$toName = "Mark Doe"; // recipient name
$body = "This is Test Email!"; // body text
$subject = "Test Subject"; // subject text
$mail = new Zend_Mail();
$mail->setBodyText($body);
$mail->setFrom($fromEmail, $fromName);
$mail->addTo($toEmail, $toName);
$mail->setSubject($subject);
try
$mail->send();
catch(Exception $ex)
// I assume you have your custom module.
// If not, you may keep 'customer' instead of 'yourmodule'.
Mage::getSingleton('core/session')
->addError(Mage::helper('yourmodule')
->__('Unable to send email.'));
This could be a quick fix but I recommend to create a custom email template in magento. Maybe Inchoo's custom email template post can get you started
Where i need to add email code
– Magento 2
Jun 23 '16 at 13:52
Create a new Magento extension. If you need help, have a look here. At Step 2 change <sales_order_place_before> with <sales_order_place_after>. You email code will go in Step 4 public function example($observer)
– MMScreenX
Jun 23 '16 at 14:06
check my updated question
– Magento 2
Jun 23 '16 at 14:32
You will have to learn how Magento modules work. It's very clear that you are missing Model and code is incorrect. If you follow the instructions/steps from my previous comment you should be able to do it.
– MMScreenX
Jun 23 '16 at 14:36
sorry i missed Model code still same
– Magento 2
Jun 23 '16 at 14:39
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f122505%2fmagento-send-custom-mail-to-custom-person-after-place-order%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
You need to observe below event
<events>
<sales_order_place_after>
<observers>
<sales_order_observer>
<type>singleton</type>
<class>Namespace_Modulename_Model_Observer</class>
<method>customMail</method>
</sales_order_observer>
</observers>
</sales_order_place_after>
</events>
Create your observer as below:
class Namespace_Modulename_Model_Observer
public function customMail($event)
$order = $event->getOrder();
//add your mail send code here
check my updated question
– Magento 2
Jun 23 '16 at 14:32
add a comment |
You need to observe below event
<events>
<sales_order_place_after>
<observers>
<sales_order_observer>
<type>singleton</type>
<class>Namespace_Modulename_Model_Observer</class>
<method>customMail</method>
</sales_order_observer>
</observers>
</sales_order_place_after>
</events>
Create your observer as below:
class Namespace_Modulename_Model_Observer
public function customMail($event)
$order = $event->getOrder();
//add your mail send code here
check my updated question
– Magento 2
Jun 23 '16 at 14:32
add a comment |
You need to observe below event
<events>
<sales_order_place_after>
<observers>
<sales_order_observer>
<type>singleton</type>
<class>Namespace_Modulename_Model_Observer</class>
<method>customMail</method>
</sales_order_observer>
</observers>
</sales_order_place_after>
</events>
Create your observer as below:
class Namespace_Modulename_Model_Observer
public function customMail($event)
$order = $event->getOrder();
//add your mail send code here
You need to observe below event
<events>
<sales_order_place_after>
<observers>
<sales_order_observer>
<type>singleton</type>
<class>Namespace_Modulename_Model_Observer</class>
<method>customMail</method>
</sales_order_observer>
</observers>
</sales_order_place_after>
</events>
Create your observer as below:
class Namespace_Modulename_Model_Observer
public function customMail($event)
$order = $event->getOrder();
//add your mail send code here
answered Jun 23 '16 at 13:44
Prashant ValandaPrashant Valanda
9,84212355
9,84212355
check my updated question
– Magento 2
Jun 23 '16 at 14:32
add a comment |
check my updated question
– Magento 2
Jun 23 '16 at 14:32
check my updated question
– Magento 2
Jun 23 '16 at 14:32
check my updated question
– Magento 2
Jun 23 '16 at 14:32
add a comment |
You can create a simple magento extension that contains an observer on sales_order_place_after event and then you can use zend_mail to send a custom email. Something like
$fromEmail = "from@example.com"; // sender email address
$fromName = "John Doe"; // sender name
$toEmail = "to@example.com"; // recipient email address
$toName = "Mark Doe"; // recipient name
$body = "This is Test Email!"; // body text
$subject = "Test Subject"; // subject text
$mail = new Zend_Mail();
$mail->setBodyText($body);
$mail->setFrom($fromEmail, $fromName);
$mail->addTo($toEmail, $toName);
$mail->setSubject($subject);
try
$mail->send();
catch(Exception $ex)
// I assume you have your custom module.
// If not, you may keep 'customer' instead of 'yourmodule'.
Mage::getSingleton('core/session')
->addError(Mage::helper('yourmodule')
->__('Unable to send email.'));
This could be a quick fix but I recommend to create a custom email template in magento. Maybe Inchoo's custom email template post can get you started
Where i need to add email code
– Magento 2
Jun 23 '16 at 13:52
Create a new Magento extension. If you need help, have a look here. At Step 2 change <sales_order_place_before> with <sales_order_place_after>. You email code will go in Step 4 public function example($observer)
– MMScreenX
Jun 23 '16 at 14:06
check my updated question
– Magento 2
Jun 23 '16 at 14:32
You will have to learn how Magento modules work. It's very clear that you are missing Model and code is incorrect. If you follow the instructions/steps from my previous comment you should be able to do it.
– MMScreenX
Jun 23 '16 at 14:36
sorry i missed Model code still same
– Magento 2
Jun 23 '16 at 14:39
add a comment |
You can create a simple magento extension that contains an observer on sales_order_place_after event and then you can use zend_mail to send a custom email. Something like
$fromEmail = "from@example.com"; // sender email address
$fromName = "John Doe"; // sender name
$toEmail = "to@example.com"; // recipient email address
$toName = "Mark Doe"; // recipient name
$body = "This is Test Email!"; // body text
$subject = "Test Subject"; // subject text
$mail = new Zend_Mail();
$mail->setBodyText($body);
$mail->setFrom($fromEmail, $fromName);
$mail->addTo($toEmail, $toName);
$mail->setSubject($subject);
try
$mail->send();
catch(Exception $ex)
// I assume you have your custom module.
// If not, you may keep 'customer' instead of 'yourmodule'.
Mage::getSingleton('core/session')
->addError(Mage::helper('yourmodule')
->__('Unable to send email.'));
This could be a quick fix but I recommend to create a custom email template in magento. Maybe Inchoo's custom email template post can get you started
Where i need to add email code
– Magento 2
Jun 23 '16 at 13:52
Create a new Magento extension. If you need help, have a look here. At Step 2 change <sales_order_place_before> with <sales_order_place_after>. You email code will go in Step 4 public function example($observer)
– MMScreenX
Jun 23 '16 at 14:06
check my updated question
– Magento 2
Jun 23 '16 at 14:32
You will have to learn how Magento modules work. It's very clear that you are missing Model and code is incorrect. If you follow the instructions/steps from my previous comment you should be able to do it.
– MMScreenX
Jun 23 '16 at 14:36
sorry i missed Model code still same
– Magento 2
Jun 23 '16 at 14:39
add a comment |
You can create a simple magento extension that contains an observer on sales_order_place_after event and then you can use zend_mail to send a custom email. Something like
$fromEmail = "from@example.com"; // sender email address
$fromName = "John Doe"; // sender name
$toEmail = "to@example.com"; // recipient email address
$toName = "Mark Doe"; // recipient name
$body = "This is Test Email!"; // body text
$subject = "Test Subject"; // subject text
$mail = new Zend_Mail();
$mail->setBodyText($body);
$mail->setFrom($fromEmail, $fromName);
$mail->addTo($toEmail, $toName);
$mail->setSubject($subject);
try
$mail->send();
catch(Exception $ex)
// I assume you have your custom module.
// If not, you may keep 'customer' instead of 'yourmodule'.
Mage::getSingleton('core/session')
->addError(Mage::helper('yourmodule')
->__('Unable to send email.'));
This could be a quick fix but I recommend to create a custom email template in magento. Maybe Inchoo's custom email template post can get you started
You can create a simple magento extension that contains an observer on sales_order_place_after event and then you can use zend_mail to send a custom email. Something like
$fromEmail = "from@example.com"; // sender email address
$fromName = "John Doe"; // sender name
$toEmail = "to@example.com"; // recipient email address
$toName = "Mark Doe"; // recipient name
$body = "This is Test Email!"; // body text
$subject = "Test Subject"; // subject text
$mail = new Zend_Mail();
$mail->setBodyText($body);
$mail->setFrom($fromEmail, $fromName);
$mail->addTo($toEmail, $toName);
$mail->setSubject($subject);
try
$mail->send();
catch(Exception $ex)
// I assume you have your custom module.
// If not, you may keep 'customer' instead of 'yourmodule'.
Mage::getSingleton('core/session')
->addError(Mage::helper('yourmodule')
->__('Unable to send email.'));
This could be a quick fix but I recommend to create a custom email template in magento. Maybe Inchoo's custom email template post can get you started
answered Jun 23 '16 at 13:50
MMScreenXMMScreenX
81118
81118
Where i need to add email code
– Magento 2
Jun 23 '16 at 13:52
Create a new Magento extension. If you need help, have a look here. At Step 2 change <sales_order_place_before> with <sales_order_place_after>. You email code will go in Step 4 public function example($observer)
– MMScreenX
Jun 23 '16 at 14:06
check my updated question
– Magento 2
Jun 23 '16 at 14:32
You will have to learn how Magento modules work. It's very clear that you are missing Model and code is incorrect. If you follow the instructions/steps from my previous comment you should be able to do it.
– MMScreenX
Jun 23 '16 at 14:36
sorry i missed Model code still same
– Magento 2
Jun 23 '16 at 14:39
add a comment |
Where i need to add email code
– Magento 2
Jun 23 '16 at 13:52
Create a new Magento extension. If you need help, have a look here. At Step 2 change <sales_order_place_before> with <sales_order_place_after>. You email code will go in Step 4 public function example($observer)
– MMScreenX
Jun 23 '16 at 14:06
check my updated question
– Magento 2
Jun 23 '16 at 14:32
You will have to learn how Magento modules work. It's very clear that you are missing Model and code is incorrect. If you follow the instructions/steps from my previous comment you should be able to do it.
– MMScreenX
Jun 23 '16 at 14:36
sorry i missed Model code still same
– Magento 2
Jun 23 '16 at 14:39
Where i need to add email code
– Magento 2
Jun 23 '16 at 13:52
Where i need to add email code
– Magento 2
Jun 23 '16 at 13:52
Create a new Magento extension. If you need help, have a look here. At Step 2 change <sales_order_place_before> with <sales_order_place_after>. You email code will go in Step 4 public function example($observer)
– MMScreenX
Jun 23 '16 at 14:06
Create a new Magento extension. If you need help, have a look here. At Step 2 change <sales_order_place_before> with <sales_order_place_after>. You email code will go in Step 4 public function example($observer)
– MMScreenX
Jun 23 '16 at 14:06
check my updated question
– Magento 2
Jun 23 '16 at 14:32
check my updated question
– Magento 2
Jun 23 '16 at 14:32
You will have to learn how Magento modules work. It's very clear that you are missing Model and code is incorrect. If you follow the instructions/steps from my previous comment you should be able to do it.
– MMScreenX
Jun 23 '16 at 14:36
You will have to learn how Magento modules work. It's very clear that you are missing Model and code is incorrect. If you follow the instructions/steps from my previous comment you should be able to do it.
– MMScreenX
Jun 23 '16 at 14:36
sorry i missed Model code still same
– Magento 2
Jun 23 '16 at 14:39
sorry i missed Model code still same
– Magento 2
Jun 23 '16 at 14:39
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f122505%2fmagento-send-custom-mail-to-custom-person-after-place-order%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
do you have a fix custom id or it may be change ?
– Ashish Madankar
Jun 23 '16 at 14:10
Sorry i am not getting
– Magento 2
Jun 23 '16 at 14:13
try
public function customMail(Varien_Event_Observer $observer)in place ofpublic function customMail($event)– Ashish Madankar
Jun 24 '16 at 4:59
Still same it redirect to shopping cart only
– Magento 2
Jun 24 '16 at 12:25