Question

I am working on magento. How can I enable auto email send option after placing the order through the checkout process?

I just only want that when a user place the order from my site then an automatic email should be sent to the user email address which contain order details.

I used from sales->order->email sent process but need to do this process automatically after placing an order by the user.

thanks

No correct solution

OTHER TIPS

The new order email is sent be Magento automatically - this is default system's configuration.

First of all, check that sending emails is not disabled. Go to admin panel to the "System -> Configuration -> Sales -> Sales Emails -> Order" section. Verify there, that "Enabled" is set to "Yes".

If sending is enabled, then the application is needed to be debugged to find the actual reason. The easiest way is to setup XDebug and put a breakpoint to the start of Mage_Checkout_Model_Type_Onepage::saveOrder() method. Then you can execute PHP step by step till you reach the $order->sendNewOrderEmail(); line. Make sure, that this line is executed. If it is not - find a reason, why, because it is a non-standard behaviour. If the line is executed, but email is not sent, the trace into this call to find the reason.

Hope, it helps.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top