Developer forum

Forum » Development » Recipient provider

Recipient provider

Martin Grønbekk Moen
Martin Grønbekk Moen
Reply

Can someone please send me an code example of how to use the recipient provider for email marketing?


Replies

 
Morten Bengtson Dynamicweb Employee
Morten Bengtson
Reply

Hi Martin,

Do you want to write your own custom recipient provider or do you want to get a list of recipients from an existing provider?

 
Martin Grønbekk Moen
Martin Grønbekk Moen
Reply

I want to write my own. A good example would be to see how the provider for "Forgotten baskets" is written.

 
Morten Bengtson Dynamicweb Employee
Morten Bengtson
Reply
This post has been marked as an answer

You can implement your own recipient provider by creating a class that inherits from Dynamicweb.EmailMarketing.EmailRecipientProvider and then implement a method override for GetRecipients().

A recipient provider is a configurable add-in. This means that you can provide custom configuration settings by adding properties with AddInParameter attributes.

See attached source code from the abandoned cart recipient provider.

Best regards,
Morten

Votes for this answer: 1

 

You must be logged in to post in the forum