April 3, 20187 yr Using emailCreate you can specify the from address for a new message. The online manual says; the FROM address for the new message. Use "Name <[email protected]>" for displaying the name instead. This works fine for 'Jerry Salem <[email protected]>' However if I use this; 'Salem, Jerry <[email protected]>' I get an error. Other than removing the comma are there any work arounds?
April 3, 20187 yr Hey Jerry, There is currently no workaround for this, but we could make a custom build that would accomplish this.
April 3, 20187 yr For anyone else running into this issue, the reason using 'Salem, Jerry <[email protected]>' causes an error is because EmailCreate is designed so that a "," is used to separate email addresses in a list so to the plugin it looks like "Salem" is being passed in as an email address which will obviously fail the check for the @ symbol.
April 3, 20187 yr Author 2 minutes ago, ryan360Works said: the reason using 'Salem, Jerry <[email protected]>' causes an error is because EmailCreate is designed so that a "," is used to separate email addresses in a list Ryan I thought that was the issue. However (I believe) you can only have one email in the FROM section. So the plugin doesn't need to check for commas there.
April 4, 20187 yr That is true, I can't think of any situation where there would need to be more than one sending address (probably against some kind of standard as well). There may be something simple that can be changed. I suspect that the same email address validation code that checks the "to" parameter also runs for the "from" parameter and in that logic, it checks for a "," the presence of a comma tells the plugin that there is a list of email addresses, it then takes the text preceding the comma and checks for the presence of an @ symbol. I will create an issue in our issue tracking system to review this but for now you will need leave the comma out or enter the name as firstName LastName <emailaddress>.
Create an account or sign in to comment