Posted on 23/10/2018 12:21:37
Hi Ricardo,
You can try to subscribe to Dynamicweb.Modules.EmailMarketing.Notifications.OnBeforeMerging. We did that for a project in the past (that you worked on) to add a different attachment per user.
Should be something like this
using Dynamicweb.Extensibility;
using System.Linq;
using System;
namespace JadaJada.Notifications
{
[Subscribe(Dynamicweb.Modules.EmailMarketing.Notifications.OnBeforeMerging)]
public class MarketingEmail : NotificationSubscriber
{
public override void OnNotify(string notification, NotificationArgs args)
{
var mergeArgs = args as Dynamicweb.Modules.EmailMarketing.Notifications.OnBeforeMergingNotificationArgs;
// Add your code here
}
}
}
Best Regards,
Nuno Aguiar