向电子邮件添加字段

发布于 2024-08-29 22:26:29 字数 179 浏览 3 评论 0原文

我正在寻找将节点字段添加到电子邮件正文的语法。示例我查看了文档,格式是[content_type:content_type_title]。

但是,我的电子邮件仅包含字符串 [content_type:content_type_title]。

更好的是加载节点并将归档标题和归档值转储到消息正文中的 PHP 片段。

I am looking for the syntax to add node fields to the body of an email. Examples I looked at the documentation, and the format is [content_type:content_type_title].

However, my email arrives with just the string [content_type:content_type_title].

Even better would be a PHP snippet that loads the node and dumps filed title and filed value into the body of the message.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

无言温柔 2024-09-05 22:26:29

规则支持令牌模块,它应该允许您执行类似的操作。

Rules supports the Token module, which should allow you to do something like that.

故事↓在人 2024-09-05 22:26:29

使用 node_load($nid) 或 db_query 获取所需的节点,在您正在创建的电子邮件函数中使用它。

Use node_load($nid) or db_query to get the node you want, use that in the email function you are creating.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文