Skip to content
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

Adding Merge Vars #188

Open
wolfamichael opened this issue Mar 21, 2017 · 0 comments
Open

Adding Merge Vars #188

wolfamichael opened this issue Mar 21, 2017 · 0 comments
Assignees

Comments

@wolfamichael
Copy link

I realise the following works:

EmailMessage message = new EmailMessage();
message.AddRecipientVariable("sample @ gmail.com", "FNAME", "Bob");
message.AddRecipientVariable("sample @ gmail.com", "LNAME", "Smith");

However it would be simpler if we can just add a collection of RcptMergeVar directly to message.mergevars, i.e.

List<RcptMergeVar> lmergevar = new List<RcptMergeVar>(); lmergevar.Add(new RcptMergeVar() { Rcpt = "sample @ gmail.com", Vars = { new MergeVar { Name = "FNAME", Content = "Bob" } } }); message.MergeVars.AddRange(Imergevar);

I don't understand what the purpose of exposing MergeVar and RcptMergeVar achieves if we than cannot use the collection to add to set EmailMessage.MergeVars?

@shawnmclean shawnmclean self-assigned this Jul 21, 2017
@shawnmclean shawnmclean added this to Todo in Issues Cleanup Jul 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

2 participants