WordPress.org

Ideas

Option for sending emails by SMTP or PHP's mail() function inside WP's settings

  1. OC2PS
    Member

    12345

    5*

    This should definitely be in core.

    Posted: 1 year ago #
  2. Er_Maqui
    Member

    12345

    I think that this is necessary. The problem is not if the host does allow the mail() function, but if the host IP is banned from servers around the world. The 50% of the "normal" hosting have their IPs banned at some point because of spammers.

    The solution is as simple as a WP setting to set SMTP values in order to avoid going through the host IP, and use a "real" SMTP also meets the SFP criteria to not be classified as spam.

    Perhaps the general public is not needed, as it will not care if their emails are classified as spam or not delivered, but anyone who wants to use a minimally WP professional, you need this.

    Posted: 1 year ago #
  3. twhiting9275
    Member

    12345

    This is definitely necessary.
    Hosts, left and right are disabling php mail() functionality as they should, due to it's massive abuse, and this is kind of a needed thing

    Posted: 1 year ago #
  4. Dominic
    Member

    12345

    I realize that this idea has already been effectively rejected, but I thought I would just share my 2 cents.

    Since SMTP vs. mail() is kind of a developer centric thing, could this be implemented as some optional constants in wp-config.php? That way, devs could easily add the options, and since WP already uses PHPMailer (which supports SMTP), wp_mail would just need a small change to check if the required options are there (and valid) and then instead of calling $phpmailer->IsMail(), it could call $phpmailer->IsSMTP().

    The settings pages aren't cluttered, and developers can send mail how they want. Win-win-win. :)

    Posted: 1 year ago #
  5. Dominic
    Member

    12345

    Never mind. I just found the phpmailer_init hook. That should accomplish this, no problem.

    Posted: 1 year ago #
  6. BlindDater
    Member

    Is it in core already? I thought it was included in 3.8.x

    Posted: 1 year ago #
  7. Ipstenu (Mika Epstein)
    Half-Elf Support Rogue, Volunteer Forum Mod & Plugin Referee

    It's not in the 'settings' page, but yes, phpmailer_init should cover this :)

    Posted: 1 year ago #

RSS feed for this topic

Reply

You must log in to post.

  • Rating

    12345
    20 Votes
  • Status

    This idea has been implemented

Tags