JerrySalem Posted April 3, 2018 Posted April 3, 2018 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?
Amber360Works Posted April 3, 2018 Posted April 3, 2018 Hey Jerry, There is currently no workaround for this, but we could make a custom build that would accomplish this.
ryan360Works Posted April 3, 2018 Posted April 3, 2018 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.
JerrySalem Posted April 3, 2018 Author Posted April 3, 2018 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.
ryan360Works Posted April 4, 2018 Posted April 4, 2018 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>. 1
Recommended Posts
This topic is 2423 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now