-
Notifications
You must be signed in to change notification settings - Fork 623
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create personalization in constructor #568
Comments
Hello @izhukovich, You can add to the initial personalization we create for you in the constructor through this object: You may be interested in providing your thoughts on the redesign, which is underway now: With Best Regards, Elmer |
+1 for making the parameters optional.
Perhaps instead of/in addition to this constructor there could be other methods for creating an instance of the object that do not require these parameters. (hope this isn't too repetitive - I'm going through the discussion you linked to above but it's pretty long.) As an aside, my company's use case involves sending tens of thousands of emails a day, some as bulk mailings and some as individual mailings. Each of those is sent with a transactional template so our marketing department can manage them. For each recipient we are sending about 20 substitution tags. So ability to easily send to groups and add substitution content without doing weird things in the code is a use case I very much identify with. Thanks for all your time and help! |
Hi @Tzafra! This is great feedback and I've added a note to the thread over at #434. Thank you! |
@thinkingserious completely agree with @Tzafra. I am trying to send multiple personalisations and it doesn't make any sense to have to set the first user via the mail constructor. It is also really awkward to then have to edit that personalisation for substitutions. I will look to revert to 5.6 for the mean time. |
@iskov==
Thanks it working |
I want to send email with personalization and substitution tags, but an empty personalization is created in Mail constructor:
Then I create one more with substitution tags and add it to mail. Finally I have 2 personalizations and empty emails are sent from time to time.
Now I iterate all existing personalizations and add tags to them, but it is not good solution.
Can you make parameters in constructor optional?
Or add an optional substitutionTags param:
The text was updated successfully, but these errors were encountered: