New answers tagged

0

Add the email address at this location in the backend. 1) Go to System Configuartion. 2) Open the sales tab and select Sales Email. 3) Expand the Order tab. 4) Add the order emails to Send Order Email Copy To


0

How to Configure Sales Email in Magento 2 On the Admin Panel, Stores > Settings > Configuration. On the left panel, under Sales tab, click on Sales Emails subtab. Open the Order section: To send the sales emails to many people at the same time, enter the email addresses in the Send Order Email Copy To field, and each is separated by comma.


0

Since at least the newest security patch in June 2019 Magneto 2(.1.18)'s forgotpassword.phtml customer module template has a form key like the one below. Without the form key, the form will fail, which is likely if your theme includes a custom forgotpassword.phtml based off an earlier version of Magento. getBlockHtml('formkey')?>


0

Try This :- <?php namespace YourCompanyName\YourModuleName\Block; class YourCustomBlock extends \Magento\Framework\View\Element\Template { protected $_customerSession; public function __construct( \Magento\Framework\View\Element\Template\Context $context, \Magento\Customer\Model\SessionFactory $customerSession, array $...


1

Replace your block code with the following code: class Edit extends \Magento\Framework\View\Element\Template { protected $request; protected $customerSession; protected $objectManager; public function __construct( \Magento\Framework\View\Element\Template\Context $context, array $data = [], \FM\Quick\Model\...


1

Try this. Ref. https://sohel.dev/2017/05/05/how-to-get-customer-id-from-block-when-full-page-cache-enable-in-magento-2/ namespace SR\CustomerSession\Model\Customer; class Context { /** * Customer authorization cache context */ const CONTEXT_CUSTOMER_ID = 'logged_in_customer_id'; } di.xml [SR/CustomerSession/etc/frontend/di.xml] <?...


0

Override \Mageplaza\Smtp\Mail\Transport File In Your Custom Module :- di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd"> <preference for="\Mageplaza\Smtp\Mail\Transport" type="Vendor\Module\Mail\Transport" /> ...


0

Can you advise on what extension you are using? or are you using the standard magento functionality? The issue is down to any email client using smtp-mail.outlook.com to send email. In July, there was a change that disallowed you using a return email address that are not in your list of verified email aliases or connected accounts. In other words, you ...


1

I had a misunderstanding in the structure of the data being passed to the email template. The "data" object was set as the only accessible DataObject in the variables array passed to send(...) in Mail.php. So I could access the data object like this in the email template: {{layout handle="email_product_custom_options" dataObj=$data area="frontend"}} ...and ...


1

Difficult to know without seeing your email send logic but typically you need to build objects which you then pass through to email templates. https://magento.stackexchange.com/a/283338/70343 So I would have thought you would be better passing the block template output as a variable.


0

You might be able to change it in Stores > Configuration > General > Store Email Address


0

it's return the Error in query (1064): Syntax error near 'FOR sales_flat_order_grid Table' at line 6strong text


0

Note: Contact is vendor and Us is module.Here i am posting my form data to my frontend controller Post.php step 1: Create email_templates.xml in app/code/Contact/Us/etc <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../Email/etc/email_templates.xsd"> <template id="...


0

Note: Contact is vendor and Us is module.Here i am posting my form data to my frontend controller Post.php step 1: Create email_templates.xml in app/code/Contact/Us/etc <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../Email/etc/email_templates.xsd"> <template id="...


0

... use Magento\Framework\Mail\Template\SenderResolverInterface $senderResolver ... $identity = $this->senderResolver->resolve($this->scopeConfig->getValue( 'sgecomoutofstock/outofstocksubscription/identity', \Magento\Store\Model\ScopeInterface::SCOPE_STORE )); ... The variable $identity will contain an array with the name and the ...


0

Fixed this issue by extending Magento\Framework\Mail\Message and adding new function createCustomAttachment in this, also edited the createHtmlMimeFromString function. protected $attachment; public function createCustomAttachment($body, $mimeType, $disposition, $encoding, $filename){ $attachment = new Part($body); $attachment->setType($mimeType);...


0

I have solved this issue by installing Send mail package on our development server. Thanks for all your suggestion!


0

For Sending Email You Can Install Module :- Mageplaza SMTP After Install Module Configure Module :- Configure SMTP


1

Magento 2 uses validation.js file for apply validations which is located at lib/web/mage directory of Magento 2. In Magento 2, it's not by default provide rule which validate mobile number and email ID validate in textbox. So, Need to create new rule to extend validation.js using mixin. 1) create requirejs-config.js at app/code/RH/CustomValidation/view/...


0

In order to show an attribute to cart page you just need to create app/code/Vendor/Modulename/etc/catalog_attributes.xml and add the following code: <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Catalog:etc/catalog_attributes.xsd"> <group name="...


0

This could bring light to your issue https://social.technet.microsoft.com/Forums/lync/en-US/69426f64-717d-47e0-aa1b-700903ee83cc/520-storedrv-error?forum=exchangesvrsecuremessaginglegacy Can you try checking on your Stores > Configuration > General > Contacts > Email Sender SendAsDeniedException does relate to the email sender being not ...


0

Fixed this issue by extending Magento\Framework\Mail\Message and adding new function createCustomAttachment in this, also edited the createHtmlMimeFromString function. protected $attachment; public function createCustomAttachment($body, $mimeType, $disposition, $encoding, $filename){ $attachment = new Part($body); $attachment->setType($mimeType)...


1

Fixed this issue by extending Magento\Framework\Mail\Message and adding new function createCustomAttachment in this, also edited the createHtmlMimeFromString function. protected $attachment; public function createCustomAttachment($body, $mimeType, $disposition, $encoding, $filename){ $attachment = new Part($body); $attachment->setType($mimeType)...


0

Steps to call PHTML file in custom email template: Write below code in email template to call custom phtml file. You can pass custom data in $custom_var to PHTML file. {{layout handle="custom_email_data" custom_var=$custom_var area="frontend"}} Create layout file at below path : Vendor/Module/view/frontend/layout/custom_email_data.xml <?xml version="...


0

Above issue is resolved : I have replaced the Mandrill module with a compatible 2.3.1 module. https://github.com/ebizmarts/magento2-mandrill/tree/compatibility231 And added mandrill library using composer composer require mandrill/mandrill Now it's working like a champ.


1

You need to install SMTP extension to send emails in local environment https://www.mageplaza.com/magento-2-smtp/ And You can see the details for the configuration here


1

Newsletters are for easily inform customers about new products, specials, promos, etc. Please read here Newsletter Functionality Also check How to configure Configuring Newsletters Hope it Helps.


0

We can use HTML Codes for Spanish Language Characters &uacute; to make it take ú in email template, Make sure the type is html type="html" in YourVendor/YourModule/etc/email_templates.xml Here are the different Spanish characters you may want to use: Display FriendlyCode NumericalCode Hex Codes Description Á &Aacute; &#...


Top 50 recent answers are included