问题标签 [email-templates]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
3182 浏览

node.js - nodemailer node-email-templates,没有这样的文件或目录错误

我想将email-templates 包与 nodemailer 结合使用,但我收到有关模板文件不存在的错误。我已经尝试过绝对路径和相对路径,但都无济于事。最后我决定尝试让这个例子工作,但仍然没有运气。这是我所做的:

下载并解压node-email-templates-master 的zip 文件,然后:

我收到与以前相同的错误:

我正在运行节点版本 0.8.12

通过以下方式安装软件包:

并执行示例文件:

给出同样的错误。有没有人可以帮助我启动并运行电子邮件模板?天呐!

0 投票
1 回答
148 浏览

wso2 - wso2 governance email templates

We have gotten WSO2 governance registry to send e-mails successfully. Now we want to template the emails that are being sent out.

There is a sample at : http://docs.wso2.org/wiki/display/Governance450/Notification+E-mail+Customization+Sample

This allows you to alter the text coming through the event but is there an easier way that writing Java code? We cannot compile the sample anyway as the Maven compiler keeps looking up the references files and errors with checksum validation failed.

Thanks

0 投票
1 回答
227 浏览

php - 如何在 html 注释之间运行 php 代码

我正在设置一个电子邮件模板以在 MS Outlook 中工作(在背景图像上显示文本)。

这是通过 VML 完成的,现在的问题是,它在引号之间呈现数据,但我的内容是动态的,所以我需要一种方法来执行该 php 代码..这是我使用的代码 -

这是我需要展示我的动态内容的地方 -<div>DYNAMIC PHP CONTENT</div>

让我知道是否还有其他方法可以做到这一点:)

0 投票
1 回答
6695 浏览

magento - 在 Magento 的电子邮件模板中查找句柄

我正在尝试编辑此电子邮件模板:

我正在尝试编辑订单总计部分,但在上面的文件中它有这个代码

得到我需要编辑的数据。有谁知道我在哪里可以找到这个sales_email_order_items句柄以便我进行编辑?我正在使用 Magento CE 1.4.1.1

谢谢~

0 投票
1 回答
1032 浏览

magento - Magento:adminhtml 阻止指令未在前端电子邮件模板中加载

我一直在网上搜寻这个。Magento Commerce 对我来说很干。grepping 核心代码,阅读 Alan Storm,细读 Incho,甚至在 SO 上找到相关问题都没有给我答案。

话虽如此,我的问题在于一个事务性电子邮件模板,该模板在从后端处理而不是从前端处理时起作用。这是一个片段:

在后端,这些块按预期呈现。在前端,这些块指令上方和下方的所有内容都被渲染,但在渲染模板时,这些指令似乎在处理中死亡。没有错误被抛出。

我听从了这里的建议,但没有运气。最初我尝试在电子邮件模板模型上使用 setDesignConfig,但没有奏效。我什至尝试将 设置area为指令中的属性,但这也不起作用。一位同事建议我将上述模板复制两份:一份设置为 in design/adminhtml,另一份设置为design/frontend. 我宁愿不必担心额外的维护。另外,如果指令中指定的块类型来自 adminhtml,我担心我会遇到同样的问题。我不想要那个解决方案。

那么我做错了什么?我不明白什么?

Magento 如何解析模板的真实路径,模板是否强制驻留在其父块的区域中?

需要帮助!谢谢。

0 投票
1 回答
803 浏览

css - 样式不适用于热邮件电子邮件模板

我的电子邮件模板中有一个表格。我应用样式来右对齐 td 中的文本。但是当我使用 hotmail 检查它们时,样式标签看起来是空的。我align="right"在 td. 但什么也没有发生。

html:

如何做到这一点?

0 投票
2 回答
103 浏览

asp.net - 在电子邮件中发送模板失败

在 asp.net 中,我试图在电子邮件中发送模板,所以当用户从我的网站收到消息时,它将在模板中,

例如,当 FB 通过邮件向您发送通知时,它也有页眉和页脚,所以我想这样做,我试过但它没有在电子邮件正文中发送任何模板

代码:

0 投票
1 回答
441 浏览

json - django-helpdesk email template

I'm new to Django, and need help with a question about email templates.

I'm using a Django-helpdesk apps and it's have a model name Ticket. Along with many other fields, I would like to add an extra field to it, that is, a field name foo. All database is updated, and when a user submitter a new ticket, an email is sent to the user with some info, i.e submitter_email, dates etc. Everything seems to be correct but the new field foo I've added is blank.

For example, in email templates we can retrieve a ticket id by calling in HTML field:

you'll get Ticket number 1234, or:

If you want to retrieve a submitter email. But when I call:

the foo is blank.

To mention: Django-Helpdesk email templates using JSON, and south, and I've checked that south is migrated corectly after the field foo is added.

Do I missed something here? I'm very thankful for your help.

Thanks.

0 投票
1 回答
1400 浏览

django - 在哪里存储电子邮件模板?

我正在编写一个将发送 HTML 电子邮件的 Django 1.4 应用程序。我正在使用 Django 模板来呈现电子邮件内容,但我不确定如何存储模板。

我可以将它们存储在电子邮件应用程序中(就像其他模板一样),但使用静态文件感觉很愚蠢。

我考虑过创建一个电子邮件模型并将模板代码存储为一个 TextField,这会起作用。

我搜索了更好的解决方案,并在 reddit 上看到了sendwithus.com,这是一个好主意......

这类事情有 Django 约定吗?

0 投票
3 回答
8050 浏览

salesforce - 如何在销售队伍电子邮件模板中使用 if 语句

我正在尝试将 if 语句添加到我的电子邮件模板(类型:HTML)。我使用了以下代码:

我的输出什么都不是:/

有人知道怎么做吗?