kentico_martind
-
3/17/2009 9:30:59 AM
RE:Add newsletter subscriber with an BizForm
Hello,
You can use sample code bellow to subscribe user in OnAfterSave event handler of BizForm (http://devnet.kentico.com/docs/devguide/adding_custom_actions_to_a_biz.htm):
SubscriberProvider.Subscribe(subscriberId, newsletterId, DateTime.Now, true);
The last parameter says if you want to send subscription confirmation e-mail to subscriber.
Best Regards,
Martin Dobsicek
|