WordPress.org

Forums

ALO EasyMail Newsletter
wp_create_user() adds user to wp_easymail_unsubscribed() (10 posts)

  1. batman42ca
    Member
    Posted 1 year ago #

    Calling wp_create_user() adds user to wp_easymail_unsubscribed()

    How can I prevent that?

    https://wordpress.org/plugins/alo-easymail/

  2. Computer Shop Online
    Member
    Posted 3 months ago #

    Hi Batman42ca,

    I have the same issue, i am using Woocommerce with Woocommerce Poor Guys Swiss Nife plugin, and i have a checkbox in my checkout form to let the customer choose to subscribe or not subscribe to the Alo EasyMail Newsletter.

    When i look in a newly received order, and i see that the customers wants to subscribe to the newsletter, i go to the ALO EasyMail newsletter, and i want to try to add this email adres to the list of subscribers, i get an error message that user allready unsubscribed to the list. This happens all the times. I just tried to delete the user from the wp_easymail_unsubscribed table in PhPmyAdmin, and after that it is possible to subscribe the user to the mailing list.

    I don't think this is the way how this should work. Do you allready have found a solution for this issue?

    With kind regards,

    Gaston
    Computer Shop Online
    http://www.computershop-online.nl

  3. batman42ca
    Member
    Posted 3 months ago #

    It was a while ago but looking at my code, I see I do the following after creating the user:

    global $wpdb; // this is a global WordPress variable
    $email = "email-of-users@mail.com"; // whatever the user's email address is
    
    $wpdb->query($wpdb->prepare("DELETE FROM {$wpdb->prefix}easymail_unsubscribed WHERE email=%s",$email));
  4. Computer Shop Online
    Member
    Posted 3 months ago #

    Hi Batman42ca,

    Okay, and what to do to solve this issue?

    Gaston

  5. batman42ca
    Member
    Posted 3 months ago #

    I already showed you. Use the code that I posted to remove the user's email address from the easymail unsubscribed list. I never found a way to prevent the email address being added so I just make sure I remove it after it's added.

  6. Computer Shop Online
    Member
    Posted 3 months ago #

    Hi,

    And where it which .php file or something must this being used?

  7. eventualo
    Member
    Plugin Author

    Posted 3 months ago #

    Thanks for the report, I'll investigate about it.

  8. eventualo
    Member
    Plugin Author

    Posted 1 month ago #

    It should be fixed in 2.5.05. Please share your feedback.

  9. ajayrds
    Member
    Posted 3 weeks ago #

    @batman42ca - Is removing from the unsubscribe table enough? Or will we have to move these records to the subscribers table?

    Ajay

  10. batman42ca
    Member
    Posted 3 weeks ago #

    According to eventualo, it's been fixed, but in the past, I experienced no problems after I removed the email addresses from the unsubscribe table. That seemed to be good enough.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.