public override void ProcessUniqueItem(RenderResult renderResult, RenderTaskUniqItemParameters parameters) { // This method is called once for every subscriber. It will give you the tracking item to get personal data the subscriber. // The only thing we know about the reciver at this time is its email and name found in emailTrackItem and we'll aslso give you // the actual newsletter thats about to be sent. // Ths will replace [subscriber] with both the name and email of the subscriber. renderResult.MessageBody = renderResult.MessageBody.Replace("[subscriber]", String.Format("{0} ({1})", parameters.EmailTrackingItem.Name, parameters.EmailTrackingItem.Email)); }
public override void ProcessUniqueItem(RenderResult renderResult, RenderTaskUniqItemParameters parameters) { // This method is called once for every subscriber. It will give you the tracking item to get personal data the subscriber. // The only thing we know about the reciver at this time is its email and name found in emailTrackItem and we'll aslso give you // the actual newsletter thats about to be sent. // Ths will replace [subscriber] with both the name and email of the subscriber. renderResult.MessageBody = renderResult.MessageBody.Replace("[subscriber]", String.Format("{0} ({1})", parameters.EmailTrackingItem.Name, parameters.EmailTrackingItem.Email)); }