I am creating a workflow in Ubercart 2.x such that when a person subscribes to our online magazine, they will also receive a newsletter.
I am using simplenews, but I notice that a person needs to opt-in manually to subscribe to a newsletter...
How can I make the customer get subscribed to a specific newsletter automatically?
I know about Conditional Actions, so I could write a PHP script that does it manually, though I'm not yet sure which function calls to make. For example, is there some function that I can call like:
simplenews_assign_newsletter($uid,$name_of_newsletter)
And I could just throw the customer's UID in there and it will do the rest?
I looked into "simplenews roles" and that looked promising, but it is only for 5.x and it is still in development mode. So, I'd rather not use it.
Any suggestions?
Comments
I think I found something
I think I found something promicing...
http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/simplenews/...
Using that function.
I will look into that. If any one has any other advice, let me know. I would imagine a simpler solution is out there since this seems like such a common need.
Hopefully this function I found will work...
esend7881: Any luck with
esend7881: I realize your post is old, but any luck with this?