在社交引擎4中为邮件模板创建占位符
所以我可以使用添加元素代码向我的联系表单添加一些字段,但我似乎无法弄清楚如何在电子邮件模板中包含这些新字段中的数据。
其他字段使用类似 [sender_email] 的占位符。我想这些字段被发布到某个地方,然后使用占位符来访问该信息。
有谁知道占位符的定义位置或者也许有一种更简单的方法可以将信息放入邮件模板中?
SO I was able to add some field to my contact form using the add element code, but I can't seem to figure out how to include the data from these new fields in the email template.
The other fields use place holders liike [sender_email]. I suppose the fields are being posted to somewhere and then the placeholder is used to access that info.
Does anyone know where the placeholders are defined or perhaps an easier way to put the info in the mail template?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
啊哈,我在困惑了几个小时后发布了这篇文章,然后在发布后 5 分钟就弄清楚了。如果有人关心,您可以在位于核心模块的 HelpController.php 文件中分配占位符。希望这可以节省某人一些时间。
Ahhh, See I posted this after being confused for a couple hours then figured it out literally 5 minutes after posting. If anyone cares you can assign the placeholders in the HelpController.php file located in the core module. Hopefully this saves someone some time.