问题标签 [sendgrid-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.
email - Sendgrid: use template versions to support multiple languages
I want to utilize Sendgrid template versions to support multiple language support.
According to Sendgrid documentation:
A template can only have one active version at a time. If you’ve created a new version with different HTML that you want your customers to start receiving, you’ll need to make that version “Active.”</p>
So, for example I have template with 2 version: English(active) and Russian. Thus, if I want to send email with Russian version, I need to active Russian template version before sending email.
But my concern is following: What if I need to send emails with Russian and English version in the same time? Will Sendgrind be able to supply proper version for 2 simultaneous request?
azure - dynamic_template_data 不适用于 sendgrid 和 azure 函数集成
尝试将事务模板与 azure function sendgrid integration (javaScript) 一起使用,我正在发送以下对象(已删除电子邮件地址等):
也尝试使用context.done(null,JSON.stringify(message))
相同的结果:我从正确的模板收到一封电子邮件,但没有任何替换。
https://api.sendgrid.com/v3/mail/send
当使用邮递员使用 API发送完全相同的对象时,一切正常。
很想在这里得到帮助,因为我在我的天蓝色功能上做错了什么。
php - 当我们有 API 时发送电子邮件?发送网格
我正在尝试使用 sendgrid 用 php 发送电子邮件,但我无法做到
我正在使用此代码
我收到了这个错误
我正在使用本教程,快速入门,知道该怎么做,在此先感谢。 https://github.com/sendgrid/sendgrid-php
java - Sendgrid v3:“替换不能与动态模板一起使用”
我正在尝试将我的 API 代码从 Sendgrid v2 更新到实际的 Sendgrid v3,所以我的代码过去看起来像这样:
经过几个小时的研究,我将 v3 更改为:(我将所有内容分开以获得更清晰的视图)
我收到以下错误:
ERROR ROOT - java.io.IOException: Request returned status Code 400Body:{"errors":[{"message":"Substitutions may not be used with dynamic template","field":"personalizations.0.substitutions","帮助“:” http://sendgrid.com/docs/API_Reference/Web_API_v3/Mail/errors.html#message.personalizations.substitutions “}]}
而且我真的不知道该怎么做!我一直在阅读 sendgrid 文档,但我无法理解。
一些可能有帮助的细节 - Java8 是语言 - 依赖关系的 MAVEN - IDE 的 IntelliJ
抱歉可能出现的错误,这是我的第一篇文章,英语不是我的主要语言。谢谢!
node.js - 带有 dynamic_template_variable_data 的 Sendgrid 主题中的变量不起作用
我正在尝试通过此库将动态变量插入主题行。
例如:“您好 {{name}},欢迎来到 {{store_name}}”
我的电子邮件发送没有问题,但主题将 {{name}} 和 {{store_name}} 呈现为......就是这样。不插入任何变量。
代码示例:
在我的 Sendgrid UI 模板中,主题值为:{{subject}} 我也尝试过:{{{subject}}} 但不行。
电子邮件已发送,主题行是...您好 {{name}},欢迎来到 {{store_name}}
什么时候应该......你好约翰,欢迎来到我的商店!
handlebars.js - 在 Sendgrid Design 模板中,如何对表格使用把手迭代?
我正在使用带有模块“代码”的 SendGrid 在线“设计”模板。
在他们的文档(https://sendgrid.com/docs/ui/sending-email/editor/#code-modules)中,他们说解码编辑器不会修改或验证任何 HTML。
如果我在代码模块中编写这段代码:
结果是:
我们可以看到该{{each}}
函数保留在 的正确位置ul
,但从 内部删除table
。这是一个临时错误吗?我该如何做这个简单的操作?
谢谢你的帮助
sendgrid - 检索 SendGrid 事务模板列表
我一直在尝试使用 API 检索 SendGrid 事务模板列表。我使用正确的 API 密钥并获得一个空数组,而我的 SendGrid 帐户中存在大约 5 个事务模板。这是回应:
任何猜测可能是什么问题?
ruby-on-rails - 特殊字符的编码在 sendgrid 模板的电子邮件主题中不起作用
我一直在使用 sendgrid-ruby gem 发送电子邮件。电子邮件的主题没有正确解码特殊字符。例如。为电子邮件发送此主题How's it going
会在实际电子邮件中转换为此主题How's it going
我尝试将字符串编码为不同格式,例如 ASCII、ISO_8859_1,但这些都不起作用。
电子邮件的主题应正确显示特殊字符,例如 ' & :
node.js - 未收到来自 SendGrid 的电子邮件
使用 Sendgrid、Node.js 和 Firebase 云功能,我能够通过 http 发送电子邮件。在过去的几天里,我的电子邮件不再通过了。我并没有真正改变我的代码,所以我不知道是什么导致电子邮件无法发送。我检查了我的 firebase 功能日志,但收到 200 或 204 状态码。当我检查 sendgrid 时,它显示正在发出请求并正在发送电子邮件。
是的,我检查了我的垃圾邮件文件夹。
有人可以帮忙吗?
这是我的功能:
这是我的 component.ts
感谢您花时间尝试和帮助!