Help with multiple dynamic recipients
-
I took over maintenance of this website with very little background in website management. I am learning lots while trying to improve our functionality and not break anything already made.
We have a sign up page that if someone selects a certain city, then the sign up email will go to one set of emails, and if they select another city, then the email will go to a different set. We have 10 cities to do this for. This function was working fine up until a month ago and I have not been able to determine the reason for it to stop working.
Now when you click “send” you get the red box “There was an error trying to send your message.”
When editing the mail tab I also notice the [forester-1] tag that I am trying to create is in bold when compared to other tags.
Below is the abbreviate shortcode for establishing [forester-1] and [forester-2] for two cities, Brockton and Barnstable:
<label style="display: none;"> Forester-1 (required)
[email forester-1 id:forester-1] </label>
<label style="display: none;"> Forester-2 (required)
[email forester-2 id:forester-2] </label>
<script text="text/javascript">
var city = document.getElementById("city");
var forester1 = document.getElementById("forester-1");
var forester2 = document.getElementById("forester-2");
var forester3 = document.getElementById("forester-3");
city.onchange = function() {
switch (city.value) {
case "Barnstable":
forester1.value = "abc@xyz.com";
forester2.value = "def@xyz.com";
break;
case "Brockton":
forester1.value = "ghi@xyz.com";
forester2.value = "def@xyz.com";
break;
};
};
</script>In my research it seems like I could do this better with pipes, or maybe this java script part is a plugin from somewhere that I am not seeing?
I’ve changed the live page to just send all submissions to my email and I am manually forwarding them to the property person in each city.
Thanks for any help!
The page I need help with: [log in to see the link]
The topic ‘Help with multiple dynamic recipients’ is closed to new replies.