Automatically set new user to Subscribed (- a variation)
-
Hi,
I’m using Mailpoet in conjunction with MemberPress and The Events Calendar in order to send notification emails to MemberPress ‘members’ of a new Event being posted.
It all works brilliantly when I use the recommended Mailpoet sending service. Exactly what I need.
My use case is that members are vetted and added by admin ie. there is no public registration page.
Mailpoet states clearly that you cannot add members with a status of ‘subscribed’ when using the Mailpoet sending service. I understand why you might have this restriction, however, this is exactly what I would like to do. In my use case, Members have already given explicit approval to use their email address. Now, I can get around this on the Mailpoet ‘subscribers’ screen, by manually setting each status to ‘subscribed’ As a developer, I’m trying to give my client minimal admin overhead. That extra manual step is annoying and creates the possibility of errors.
To circumvent the restriction, I have tried to use an alternate smtp sending method. Even though sending a test email succeeds, sending event notifications fails. The Maipoet Email page reports the email as being ‘paused’ and the log shows an error like this:
[2023-08-10T02:41:40.691958+00:00] cron.ERROR: Sending has been paused. {"error":"[object] (Exception(code: 0): Sending has been paused
I have no idea what would cause this. In any case, I’d rather use the recommended Mailpoet sending service.
Finally, I get to my question:
Is there any API call I can hook into to set a subscriber’s status to ‘subscribed’? I’m guess there must be a way, because your plugin achieves this when setting the status manually.
Thanks in anticipation, Jerry
- The topic ‘Automatically set new user to Subscribed (- a variation)’ is closed to new replies.