【发布时间】:2022-01-08 13:43:06
【问题描述】:
我在销售订单视图上创建了一个自定义按钮。现在想通过该按钮在 magento2 中单击发送自定义电子邮件模板。请帮忙。
【问题讨论】:
-
请提供足够的代码,以便其他人更好地理解或重现问题。
标签: magento2
我在销售订单视图上创建了一个自定义按钮。现在想通过该按钮在 magento2 中单击发送自定义电子邮件模板。请帮忙。
【问题讨论】:
标签: magento2
如何在 Magento 2 中发送电子邮件
在我们的示例中:Magentest/AbandonedCart/etc/email_templates.xml
示例代码:
<config
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Email:etc/email_templates.xsd">
<template id="abandonedcart_item1"
label="Abandoned Cart Item 1"
file="abandonedcart_item1.html"
type="html"
module="Magenest_AbandonedCart"
area="frontend"
/>
</config>
详细答案可以在here找到。
【讨论】: