We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [email-templates]

denotes a question about the Magento e-mail templates

Filter by
Sorted by
Tagged with
0
votes
1answer
10 views

Magento 2 email template fails

I have a problem with my site processing email templates. When I click preview on any email template it just produces a blank document. I have tried this with standard inbuilt templates and very ...
1
vote
1answer
75 views

Magento 2 - How to print array values in custom html email template by looping?

I want to print multiple coupon/gift codes in the custom email template. I am getting a single code as: $templateVars = array( 'store' => $this->storeManager->getStore(), '...
0
votes
0answers
9 views

Magento 2: Sending custom email template html file but not using admin email template page and vice versa

I have 2 questions. Is there a way to send custom email template html directly to customers in Magento2 without loading it on the email template page in the admin side? When I load my custom email ...
3
votes
1answer
52 views

Where does the whole email template in magento 2 being stored?

I would like to ask if where is the email templates in magento 2 being stored. The email templates are being saved inside magento admin so I am sure that it is being stored somewhere. Either in the ...
0
votes
0answers
8 views

Magento 2 - Email template on the admin side to reflect in local folder if there are changes

I would like to ask if there is a way that if I edit my email template on the admin side of Magento 2 on the email template page, it would also reflect on my custom email template file on my local ...
0
votes
0answers
15 views

Magento2 - Add customer email address in order email

I'm trying to add customer email address under the billing section of transactional email. For transactional email I tried this solution but it is not working. I also tried to add whith no success ...
0
votes
0answers
17 views

Get order ID in custom module's email's subject

I've a custom module which sends an Pre-order confirmation email to customer before order confirmation email sent to customer. Once admin reviewed order then only order confirmation triggered. I ...
0
votes
1answer
22 views

How can I get the email template ID by code? Magento 2

How can I get the template ID by its template name? Thanks!
0
votes
1answer
24 views

Email template fonts not rendering in gmail

I want to know how we can use our custom fonts rendering inside email template. I searched a lot to this answer but didn't find how to do that. So far I have already changed the content of email-...
0
votes
1answer
38 views

How to print field in order email?

I want print a custom file in order transactional emails. Here is my Setup file: namespace xxx\xxxx\Setup; $quote = $setup->getTable('quote'); $salesOrder = $setup->getTable('...
0
votes
1answer
20 views

How to change Content-Transfer-Encoding for custom email type?

We have created a custom payment module to allow integration with a client's POS system. The module delivers the order details in the body of an encrypted plain text email. (This method is determined ...
0
votes
0answers
23 views

Magento2.3.1 In multistore email template logo not showing diffrent store wise?

In Magneto 2.3.1 when I change in Content -> Configuration -> Transactional Email -> Logo Image After check, it only order email (like confirmation, invoice and shipment)there showing ...
1
vote
1answer
29 views

Logo and images not shown in gmail accounts magento 2

I getting issue about for displaying images and logo in gmail account when i send email to customers through magento2 then logo and images are not shown why because of the reason I search a lot to ...
0
votes
0answers
31 views

Magento 2: Translate Order Email template

How can I translate the attribute label? I've already added to "Manage Label" but still not working. Color is translated but not size? Does anyone have an idea ? I tried all possible by placing ...
2
votes
3answers
98 views

How embedded CSS in transactional email works?

I have a very frustrating issue with the Magento 2 sales order emails. Through experimentation, I worked out the locations of the many files that are used to comprise these emails. At some point, I ...
0
votes
1answer
29 views

Magento2: Reference 'copyright' design config field in email template

Is it possible to reference the copyright field found in design configuration within the footer section? I've checked here https://docs.magento.com/m2/ce/user_guide/marketing/variables-reference.html ...
0
votes
0answers
22 views

getLocaleCode() by customer instead of store

I am writing a module to send alert email to customer when a product is available. I have different email template with name like "alertmail EN", "alertmail FR"... I can't do $this->_store->...
0
votes
1answer
23 views

Override custom email template from admin

I created a custom module that sends a custom email daily for report reasons. Everything is working fine Now, I'd like to customize my custom template from admin in Marketing->Email ...
0
votes
1answer
46 views

Email template: locale lang in url

As suggest the title; what I want to do is to set url in my email template different depending on locale language. What I tried to do: config path='web/unsecure/base_url'}}{{config path='...
1
vote
1answer
45 views

Custom email not creating with default Header and footer in Magento 2

I visited and tried all related solutions available on stack exchange so decided to add my question too as issue is not resolved. Function is: public function sendEmail() { $email="...
1
vote
1answer
56 views

Magento 2 : How to add custom parameter in invoice template email

I want to add a custom parameter in the invoice template and display that template. so please give me any solution on how to do that?
0
votes
0answers
22 views

How to edit email preview text for emails in magento 2 when using header template

I am working on customizing emails in Magento 2 admin panel. I have created a header template and footer template, and have also created other email templates that pull the header and footer from the ...
0
votes
2answers
43 views

Email variable order.getShippingAddress().getStreet1() returns null

I have created custom order email template and placed some order shipping address variables inside it. Most variables work ok, but the following are always returning no value: {{var order....
1
vote
2answers
35 views

How can I send Image attachment in custom email from controller in Magento 2.3.0

I have created custom module for quotation in Magento2.3.0. Module is working as per requirement but I want to send an attachment also in the email which is not working. I am sending email from ...
1
vote
0answers
32 views

Magento 2.3.2 custom email send createAttachment() method is not working

I am fresher in Magento 2.3.2, custom email send createAttachment() method is not working how to solved ? Thanks in advance.
0
votes
2answers
58 views

Unable to pass array to email layout template (Magento 2)

I've created a module to capture and pass submitted custom option selections from a product which I intend to then send via email (for quotes). Everything is working except my attempts to pass the ...
0
votes
1answer
51 views

Magento 2 - Error when I try to override OrderSender class

I have a problem when I want to override the class OrderSender of the transactional mail. I want to know if the order was paid by a custom payment method 'quotation', so I modify the class, it works ...
0
votes
1answer
35 views

order_new.html email template by payment method

I try to modify some text in the order_new.html if the customer pay by a custom payment method. For example, if he pay with 'tati' payment method, I want to remove a sentence of the mail template. ...
0
votes
1answer
20 views

Magento 2 add cart contents to email termplate

Is there a way to add the contents of the users cart to an email template? I would like to do this for the abandoned cart email and would rather not use a 3rd party extension.
0
votes
0answers
27 views

How to style Riskified decline email Magento 2

I am not able to add HTML tags and CSS to it in Riskified Decline Email The problem is Email content prints as it i.e. starts with tags Neither can I apply CSS to it. I tried this Change plain text ...
0
votes
2answers
35 views

Magento 2: How to translate %changes in email templates

There are some email templates that use variable %changes and I'm not able to translate the text (password) it outputs. How do I translate it? I have tried CSV file with no luck. Here is an example ...
0
votes
0answers
18 views

Speed up magento 1.9 checkout submit

My checkout submit process is 7-8 sec slow. I am checking with profiler and found that this one takes more than 500ms. Is it normal? I did not edit much the email order template. layout/db_update: ...
1
vote
1answer
67 views

How to migrate email templates only from M1 to Magento 2?

We have installed migration tool in Magento 2.3.1 EE (composer require Magento/data-migration-tool:2.3.1 ) would like to migrate M1 commerce edition (1.14.3.1) to Magento 2.3.1 EE. We have migrated ...
0
votes
0answers
23 views

widget inside newsletter

I am trying to send newsletter with the magento 2 template. I can insert widget but the email has nothing. Example: **<table style="height: 203px;" width="845"> <tbody> <tr> <td ...
0
votes
1answer
35 views

How to access Multidimensional Array in Magento Email Template?

Hi I am trying to pass multi-dimension array to email template Magento 1.9 CODE FOR SENDING EMAIL $emailVariables['appointment']=$appointmentArray; //it is appointment data array $...
0
votes
0answers
21 views

Email template preview gives 500

In my server, I am using Nginx and issue which I faced is when we have long data in the email template. while preview that template we get 500 and page is completely broken. In this case, this is not ...
0
votes
2answers
54 views

Magento2: How to add custom attribute value in Email template?

I want add custom attribute value in new order email template. Please help me in this.
0
votes
0answers
22 views

Email not being translated/viewed correctly. What is causing the issue and how can I fix it?

I am currently having the following issue: All automated Magento emails were working normally. But today I have made a test order and suddenly the emails are not being translated anymore. The ...
0
votes
1answer
22 views

Magento template <a href=“”></a> not interpreted

I created a custom form to allow people to ask a catalog, the form works, but when I try to send a mail confirmation to the customer with the catalog link, I see the html tag on the mail. How fix ...
3
votes
1answer
48 views

Email Template Error with spanish characters

I am sending a custom email, the custom template data is in Spanish. if the template is in the English language it's working perfectly. but in Spanish language, it shows me unknown error. it's not ...
0
votes
2answers
44 views

In Magento2.3.2 :Mail send settings :- Is it work through localhost or Not?

In Magento2.3.2 :Mail send settings :-what are the possible ways for mail-send(like need for order,shipping,delivery). I check store->configuration->Advance->system->mail sending settings... I need ...
0
votes
2answers
34 views

How to get the custom email templates list in magento2

How to get custom email templates list collection in magento2. how to get the collection
0
votes
0answers
26 views

Error 503 when preview a template email with header_template or footer_template config_path

When I try to show the preview of my newsletter template I get error 503: Service Temporarily Unavailable The server is temporarily unable to service your request due to maintenance downtime or ...
1
vote
1answer
55 views

How to send AMP Emails using Magento?

I am trying to build a simple code to send Google AMP Emails using Magento 2. Can someone lead me in the right direction? There is no manual online even for PHP on how to do this. Thanks!
0
votes
0answers
12 views

How to set different emials in sales order update?

Is it possible to sent different emails when i change the order status in my backend? Example: My sales order status in Processing, i changed to "verify" (email sent to customer with content "verify")...
1
vote
3answers
54 views

Magento 2.2.8 cannot find custom email template : Template file 'back_in_stock.html' is not found

I'm creating an extension which sends email from command console and / or cron. https://github.com/DominicWatts/BackInStock/tree/develop In https://github.com/DominicWatts/BackInStock/blob/develop/...
2
votes
1answer
88 views

Email layout handle phtml doesn't update in magento 2

I am developing a little custom Magento 2 extension that sends emails to admins on certain events. In layout handle's phtml template file I originally made a spelling mistake, which when corrected ...
0
votes
0answers
12 views

how to change getShippingDescription() content

I want to change the contents of this variable when the stock of the product purchased is less than 0 (non-stock purchases are enabled) How I can do this?? I'm using Magento 2.3.0
1
vote
0answers
15 views

Conditionally show specific blocks in mail templates based on store config for a store view

Is it possible to show / hide different blocks in mail templates, based on store configuration entries? We know about {{if ... }} and {{config path="config/path"}} but how can this be combined?
2
votes
0answers
27 views

How to call third party fonts API in order confirmation email?

I want to integrate third party fonts in my order confirmation email using API. Anyone know how to call third party API in my order confirmation email ?