WordPress.org

Ready to get started?Download WordPress

Forums

Plugin: wpPHPMailer (19 posts)

  1. Scott Reilly
    WordPress & Plugin Dev
    Posted 10 years ago #

    Hello, all! Sorry for what will be a burst of plugin announcements for me, but I haven't been able to make available the plugins I've developed over the last couple of weeks until now.
    Plugin: wpPHPMailer
    Description: An alternative to the default mailer usage of PHP's mail() function. Sends to SMTP host(s) directly (bypassing sendmail) and allows for HTML content.
    Details can be found at:
    http://www.coffee2code.com/archives/2004/06/28/plugin-wpphpmailer/
    All of my plugins can be found at http://www.coffee2code.com/wp-plugins/.
    Since I didn't want to install and run sendmail merely to support WordPress's notifications, I opted to have WordPress send directly to the mail server. Fortunately, PHPMailer provides all the functionality I wanted to use (and more). This plugin makes use of PHPMailer (and four core code changes) to negate the need for sendmail. In addition, by using PHPMailer, a host of other mail features could be exploited. For instance, the plugin supports:
    * Auto-wordwrap length for message
    * Single or multiple SMTP servers
    * Hard-coding of all notification origination e-mail addresses (i.e. have all e-mail "From:" fields set to something like "wordpress@mysite.org" rather than the e-mail of the commenter)
    * Support for authenticating and non-authenticating SMTP servers
    * HTML in addition to plaintext ContentTypes for the message body
    - Scott

  2. blueorder
    Member
    Posted 10 years ago #

    just installed it and it's working like a champ (I'm Ricardo from the comments)...good job! and thank you!
    blueorder

  3. Scott Reilly
    WordPress & Plugin Dev
    Posted 10 years ago #

    Glad it was of use to you!

  4. blueorder
    Member
    Posted 10 years ago #

    I would suggest something though...
    On line 61 and on line 67 in 'class.phpmailer.php' I would remove the hard coded values from '$From' and '$FromName' variables and just leave them as '= "";'. When I received a notification of a comment the From user and address would be from 'Root User <root@localhost>'. After removing the hard oded values, the from field is from the person that left the comment...
    /2 cents...
    blueorder

  5. Scott Reilly
    WordPress & Plugin Dev
    Posted 10 years ago #

    Thanks for pointing that out!
    I updated the plugin to version 0.91 to address the problem. (It fixes the problem in wp-phpmailer.php, so it'll work right with an unmodified class.phpmailer.php.)
    -Scott

  6. blueorder
    Member
    Posted 10 years ago #

    Just tried out the new code and it is working correctly except for the true/false statement for $use_hardcoded_FROM_values. When it is set to false, it does use the hard coded values...when it's true, it uses the user and email from the person that left the comment for the From fields. Also, it is not necessary to have $mail->From and $mail->FromName assignments (after $use_hardcoded_FROM_values) commented out. In my testing the true/false statement worked as it's supposed to with those two lines not commented.

  7. trench
    Member
    Posted 9 years ago #

    I'm trying to go to the link but the page keeps coming up blank. :(

  8. netocury
    Member
    Posted 9 years ago #

    I use the latest version of WP (1.5.1.3)
    Dont exist function wp_mail($to, $subject, $message, $headers = '') { in wp-includes/functions.php file...
    Someone help me?

  9. Michael Bishop

    Posted 9 years ago #

    do you have the plugin installed and active?

  10. netocury
    Member
    Posted 9 years ago #

    Duh miklb...
    I found the wp_mail function in the wp-includes/pluggable-functions.php file, but i dont see any result...

  11. Michael Bishop

    Posted 9 years ago #

    I'm really not sure what the "duh" is suppose to mean. If you think it was insult, it was not intended. You posted a fairly cryptic question in a thread practically a year old. So I still don't even know if you are talking about the plugin, or another built in call.
    I simply started at the beginning.

  12. jeremybell
    Member
    Posted 9 years ago #

    I also changed @mail in pluggable-functions.php to no avail - any ideas how we can get around this?

  13. Plugin updated to v1.6

    The plugin has finally been updated to take advantage of the pluggability of the wp_mail() function. What this means for users of WP 1.5.1+ is that you no longer have to edit any WP core functions. Just install the plugin, activate it, and use the plugin's admin page to configure it, and you should be good to go.

    Also, I believe I fixed a problem that users with their WP running on Windows servers were encountering.

  14. wheelsofterror
    Member
    Posted 8 years ago #

    I use WP 1.5.3.1, wpPHPMailer 1.6.1. I entered my server info. When I hit register, I get this error:

    Warning: fsockopen(): unable to connect to mail.wheelsofterror.com:25 in /home/wheelsof/public_html/blog/wp-content/plugins/class.smtp.php on line 105

    Ideas?

  15. wardsweb
    Member
    Posted 8 years ago #

    Anyone get this to work on a GoDaddy server? The standard PHP (sendmail) did not work, so I installed this plugin that sets up easy, but still no emails out. This is a real problem as no one is getting their registration emails. You type in your name and email, click register, wait a long time (2-3 minutes) the screen changes and says your password has been emailed, but it never arrives.

  16. AlienTiger
    Member
    Posted 8 years ago #

    I am having a problem getting thsi to work, ive tried the smtp information provided by both Gmail and 1and1.com but I have yet to recieve a single email for either
    anyone think they might be able to help?
    I followed this guide for the gmail thing to set things up, i kno its not specifically for wordpress but most of the settings/configurations should carry over http://mail.google.com/support/bin/answer.py?answer=13278&query=smtp&topic=0&type=f&ctx=en:search

  17. byon
    Member
    Posted 8 years ago #

    I can't get this functioning, on my windows server, i unzipped them into \wp-content\plugins\wp-phpmailer\, activated the plugin, but still to no avail. i cant find the subtab that leads to wpPHPMailer.

  18. webbite
    Member
    Posted 8 years ago #

    I also use gmail smtp but wpphpmailer doesn't support ssl-authentication smtp?

    Hope for an update?
    Thanks

  19. Moshe
    Member
    Posted 8 years ago #

    The Host I use kept sending email via the host settings in PHP.INI - but we host nearly a dozen sites and a generic email from xxxxx@hostxx.xxxxxxxx.net is NOT what we wanted for our Blog presence.

    Thanks, coffee2code!

    wpPHPMailer was just the thing!!! Whoopee!!

    Kol tuv, chaver!

    Moshe
    http://www.wmgh.org

Topic Closed

This topic has been closed to new replies.

About this Topic