WordPress.org

Ready to get started?Download WordPress

Forums

wp_mail() not working, mail() working (1 post)

  1. darjana
    Member
    Posted 5 years ago #

    Greetings,

    I have my own dedi box, im on windows platform, im using mailenable software for mailing.

    i hacked wp_login.php, functions with wp_mail() is not working whereas when i changed the thing to mail().. it does send mail..

    so i check mailenable logs, it says syntax error for <WordPress <wordpress@domain.tld>>

    i saw from some post in blog that wordpress use php mail, this is what i got from php site

    Note: The Windows implementation of mail() differs in many ways from the Unix implementation. First, it doesn't use a local binary for composing messages but only operates on direct sockets which means a MTA is needed listening on a network socket (which can either on the localhost or a remote machine).
    Second, the custom headers like From:, Cc:, Bcc: and Date: are not interpreted by the MTA in the first place, but are parsed by PHP.
    As such, the to parameter should not be an address in the form of "Something <someone@example.com>". The mail command may not parse this properly while talking with the MTA.

    so does anyone know solution or which file to change to remove <WordPress from mail header so it look like <wordpress@domain.tld>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags