February 19, 20187 yr In our database some people have emails like: [email protected]; [email protected] This seems to be breaking the email plugin. The emails never send. Is this the expected function? I know I should separate the email addresses into different fields/records/etc but this is a synced database, and that's how it was handled for years prior. I plan on fixing them all but it's causing issues elsewhere to make the changes. Thanks (and sorry for double posting)
February 20, 20187 yr Hi MileFaker3000, I suspect that an error is being set when passing in the semi colon and that is why the email is never sent. Make sure you are error checking your function calls so you know when an error is being set and the function doesn't fail silently. When I pass in "[email protected]; [email protected]" into the to parameter I get the error: "Create Error:Illegal semicolon, not in group" . What you are experiencing is expected behavior as the plugin allows you to send to multiple recipients using a "," to separate the email addresses. Since removing the ";" from the fields is causing issues elsewhere, I recommend adding a check in your script for the presence of a ";" in the text and either removing it or replacing it with a "," before passing that information into the EmailCreate function.
February 21, 20187 yr Author Thanks Ryan. I just wanted to verify that it was the semi-colon that was actually breaking it, and you've done that. I need to get some error checking in the send scripts pronto. Edited February 21, 20187 yr by MileFaker3000
Create an account or sign in to comment