Is it possible to have the Send To Email Routing pull the necessary email addresses from a SQL table? I have hundreds of different customers and they only need to receive the form if its in their territory.
Is it possible to have the Send To Email Routing pull the necessary email addresses from a SQL table? I have hundreds of different customers and they only need to receive the form if its in their territory.
You can use a hook to do this but would have to write the custom PHP code yourself. If you can write the PHP, here is a thread that discusses how to do something similar only it sends the email to the author of the post:
http://forum.gravityhelp.com/topic/sending-form-to-author-of-post
From this thread you will be able to look at code snippets that do most of what you want to do, minus getting the email from a custom SQL table.
Thanks. I modified the code was was able to set the email_to field to correct email addresses that are in my SQL table.