+ if newsletter.crm_id:
+ subscribe_crm(email, newsletter.crm_id)
+ if newsletter.phplist_id:
+ subscribe_phplist(email, newsletter.phplist_id)
+
+def subscribe_crm(email, group_id):
+ civicrm.add_email_to_group(email, group_id)
+
+def subscribe_phplist(email, list_id):