You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: