The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Paid Memberships Pro
wp_mail (6 posts)

  1. vadaprime
    Posted 4 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.


  2. Jason Coleman
    Plugin Author

    Posted 4 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
    Posted 4 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->Subject = $this->subject;
    $this->mailer->Body = $this->body;
    $this->mailer->AltBody = strip_tags(pmpro_br2nl($this->body, array("br", "p")));

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

  4. plumbing101
    Posted 4 years ago #

  5. vadaprime
    Posted 4 years ago #

    Small bug

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

  6. Jason Coleman
    Plugin Author

    Posted 4 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

  • Paid Memberships Pro
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic