Support » Installing WordPress » wp_mail() not working, mail() working

  • 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>

  • The topic ‘wp_mail() not working, mail() working’ is closed to new replies.