Click here to Skip to main content
15,887,338 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted
Updated 3-Feb-17 6:24am

1 solution

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
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.
 
Share this answer
 
Comments
Member 12981605 21-Feb-17 13:04pm    
Thank you very much for your reply!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900