WordPress.org

Ready to get started?Download WordPress

Forums

Double Opt-In for Download
[resolved] Email not sending (6 posts)

  1. 303i
    Member
    Posted 6 months ago #

    Hello
    I have an issue with the plugin-The email is never sent after inputting details (I'm using the widget & 1.1.0). I get the "Thank you for registering", but no email is sent. If I manually resend the email, it arrives instantly.
    I've tried both with WP Easy SMTP and without, same result. All other emails sent from the website work fine, it's just the initial email that isn't sending.
    Any help?

    http://wordpress.org/plugins/double-opt-in-for-download/

  2. 303i
    Member
    Posted 6 months ago #

    Running a debug, I get these two errors:

    Notice: Object of class WP_Error could not be converted to int in /home/e*****/public_html/b*********.com/wp-includes/functions.php on line 2837

    Notice: Undefined property: DoifdFormWidget::$options in /home/e*****/public_html/b*********.com/wp-content/plugins/double-opt-in-for-download/includes/class-email.php on line 122

  3. Andy
    Member
    Plugin Author

    Posted 6 months ago #

    Try this....

    Go to plugins editor.
    Select Double OPT-IN For Downloads.
    Look for this file..."class-registration-form.php"

    Go towards the bottom and look for this line:

    $send_ver_email->send_verification_email($value = array(
    (it's line 236 if your in an editor)

    Add "$send =" to the beginning and save.

    So it will now look like this:

    $send = $send_ver_email->send_verification_email($value = array(

    See if that fixes it.

  4. 303i
    Member
    Posted 6 months ago #

    Nope, didn't work, pic of edit:
    http://puu.sh/6H4j9.png
    Could this be related to the undefined property error?

  5. Andy
    Member
    Plugin Author

    Posted 6 months ago #

    Oh Crud! The widget... I forgot to update the widget...

    go to the doifd-widget.php

    3/4 of the way down or starting on line 213

    Change this:

    DoifdEmail::send_verification_email ( $value = array(
    "user_name" => $doifd_lab_subscriber_name,
    "user_email" => $doifd_lab_subscriber_email,
    "user_ver" => $doifd_lab_ver,
    "download_id" => $download_id ) );

    To this:

    $send_ver_email = new DoifdEmail();
    $send = $send_ver_email->send_verification_email($value = array(
    "user_name" => $doifd_lab_subscriber_name,
    "user_email" => $doifd_lab_subscriber_email,
    "user_ver" => $doifd_lab_ver,
    "download_id" => $download_id));
    }

  6. 303i
    Member
    Posted 6 months ago #

    That worked! Thanks!

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.