Forums

[resolved] solution for not receiving emails - is it safe? (7 posts)

  1. Bramernic
    Member
    Posted 2 years ago #

    My host requires that the from address is passed to the PHP mail() function using "-f address@mydomain.com" in the additional parameters. I found a variable $Sender in wp-includes/class-phpmailer.php which said if set would be sent using -f. It works fine. But...

    Is this something which might get overwritten by upgrades? Is there another way of doing this?

    Version is 2.9.2 (which isn't in the dropdown list above).

  2. Ashfame
    Member
    Posted 2 years ago #

    Why not use the wp_mail() function instead?

  3. Bramernic
    Member
    Posted 2 years ago #

    I might be missing something, but isn't wp-mail concerned with accepting posts by email? I'm talking about sending registration and lost password emails.

  4. Ashfame
    Member
    Posted 2 years ago #

    wp_mail takes care of the job of sending emails only. It uses the PHP's mail function too but wp_mail is also pluggable.

    When working withing WordPress environment, I use wp_mail()

  5. Bramernic
    Member
    Posted 2 years ago #

    Sorry, I must be appearing a bit dumb here. Can you explain exactly what you are suggesting. Is it just a plug-in? If yes, which one? Or are you suggesting I should write my own?

  6. Samuel B
    moderator
    Posted 2 years ago #

    I think he is suggesting a plugin
    http://wordpress.org/extend/plugins/wp-mail-smtp/

  7. Bramernic
    Member
    Posted 2 years ago #

    Cheers samboll. I now understand what is being suggested.

Topic Closed

This topic has been closed to new replies.

About this Topic