为网站轮流发送的电子邮件 [英] Emails sent in rotation for a website

查看:108
本文介绍了为网站轮流发送的电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的客户希望在其网站上进行的联系查询可以轮流发送到12个不同的电子邮件中。例如,第1人填写联系表单 - 此电子邮件将转到数据库中的电子邮件1,然后当第2人填写联系表单时,电子邮件将发送到数据库中的电子邮件2。他们想要这样,所以工作可以在他们的员工之间平分。这是一个wordpress网站。



我只是想知道这是否可能?有插件还是必须通过代码完成?



现在一切都会有所帮助!

谢谢。



我尝试过:



I have a client who wants contact inquiries made in their website to be sent to 12 different emails in rotation. For example, person 1 fills out contact form - this email goes to Email 1 in the database, then when person 2 fills out contact form, the email sends out to the Email 2 in the database. They want this so the work can be divide equally among their staff. This is a wordpress website.

I just want to know if this is even possible? Is there a plug-in or would this have to be done through code?

Anything will help right now!
Thanks.

What I have tried:


没什么,我是甚至不确定这是否可行。

Nothing, I'm not even sure if this is possible.

推荐答案

是的,这是可能的 - 但你必须在代码中这样做。

电子邮件链接到的联系表单包含一个跟踪器ID,告诉您的系统它是一个响应的电子邮件。如果联系表单在网站上,则只需将其添加为查询字符串:

Yes, it's possible - but you'd have to do it in code.
The contact form that the email links to contains a "tracer" id which tells your system which email it is a response to. If the contact form is on a web site, then just add it as a query string:
www.MyDomain.com/contactForm.aspx?tid=c7e00cfd-1a3d-41ac-83d4-8066f4622a01

这可能有助于在WordPress URL中传递查询字符串参数 - Razorlight Media [ ^ ]

您的代码在数据库中查找tracerID,并发送一封带有新ID值的电子邮件。

我建议使用GUID来生成它们,因为生成它们并不重复。

This may helpPassing Query String Parameters in WordPress URL - Razorlight Media[^]
Your code looks up the tracerID in your DB, and sends an email with a new ID value.
I'd suggest using GUID's for this as it's trivial to generate them and they shouldn't repeat.


这篇关于为网站轮流发送的电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆