WordPress.org

Ready to get started?Download WordPress

Forums

Paid Memberships Pro
wp_mail (6 posts)

  1. vadaprime
    Member
    Posted 2 years ago #

    We have implemented the plugin and noticed that PHPMailer is used for mail delivery. Some mails haven't gone out for customers. Plugins should use the wp_mail function for outbound mail. In our case we use AWS SES for mail delivery and have a plugin which overrides the wp_mail implementation. Membership Pro doesn't pick up any of these changes!

    Also. It would be extremely helpful if there was a basic widget or shortcode that could be used to render an account login/menu in the sidebar.

    http://wordpress.org/extend/plugins/paid-memberships-pro/

  2. strangerstudios
    Member
    Plugin Author

    Posted 2 years ago #

    Great feedback. wp_mail uses phpmailer itself, but I can see where if you have other plugins working you would need those emails to go through wp_mail. I suppose we can compose the headers (wp_mail will decompose them again) and use wp_mail instead of phpmailer. I'll take a look. If you do before me, post a patch (https://github.com/strangerstudios/paid-memberships-pro)

    The widget idea is a good one too. I actually find myself building this menu in the head or sidebar on every site I setup anyway. A widget will make it easier for non-coders.

    p.s. Do I know you? (http://twitter.com/MalcolmJamalWar)

  3. vadaprime
    Member
    Posted 2 years ago #

    This is the patch in the email class:

    /*prep email
    $this->mailer = new PHPMailer();
    $this->mailer->From = $this->from;
    $this->mailer->FromName = $this->fromname;
    $this->mailer->AddAddress($this->email);
    $this->mailer->Subject = $this->subject;
    $this->mailer->Body = $this->body;
    $this->mailer->AltBody = strip_tags(pmpro_br2nl($this->body, array("br", "p")));
    */

    //send email
    //if($this->mailer->send())
    if(wp_mail($this->to,$this->subject,$this->body,array("Content-Type: text/html")))
    {
    return true;
    }
    else
    {
    return false;
    }

  4. plumbing101
    Member
    Posted 2 years ago #

  5. vadaprime
    Member
    Posted 2 years ago #

    Small bug

    $this->to -> $this->email

  6. strangerstudios
    Member
    Plugin Author

    Posted 2 years ago #

    Thanks for the patch. Testing it right now for the 1.3.2 release.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic