The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Hot answers tagged


Please refer below example and let me know if you need further information.


I've done this by creating below post controller for the custom form to send data with attachment in Magento 2. <?php namespace Vendor\Module\Controller\Index; use Magento\Framework\App\Filesystem\DirectoryList; use Magento\Backend\App\Action; use Magento\Framework\Filesystem; class Post extends \Magento\Framework\App\Action\Action { const ...


you can try this code for sending old order to Admin email. 1) Create a new file in your root directory and paste this code. ini_set("display_errors",1); define("MAGE_BASE_DIR", "/var/www/magento"); require_once("app/Mage.php"); //require_once MAGE_BASE_DIR . '/app/Mage.php'; Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID); $...

Only top voted, non community-wiki answers of a minimum length are eligible