• Can anyone tell me what the correct line is to add to my php.ini file to make all emails generated by WP to be sent through an external mail server (one that I don’t need any other special permissions because it’s on our LAN)?
    I’ve tried adding “SMTP = mailserver.dom” (no quotes) and restarted the server but no luck.
    -PHP Clueless (but liking WP a lot)

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter strom

    (@strom)

    I’m still hoping someone can help me in setting up WP and php to send mail through a separate mail server. It was suggested that I edit my php.ini file. I did by adding
    <pre>
    SMTP = mailserver.com
    </pre>
    and in looking at what’s active in my php setup, this addition “takes” after restarting the server. However, emails (such as those sent after comments are posted) are not sent. I seem to be missing something here; probably trivial but I’m not getting it! Thanks.

    Have you turned on the option to have notices sent out? It’s under Options -> General Blog Settings -> comments_notify (T/F)
    TG

    Thread Starter strom

    (@strom)

    Yes I have all of the notify settings turned on. Is there a file within the WP directly that hard codes the external server (like phpbb)? If there is and it’s set to local or something, this would explain the problem. I haven’t been able to find any such line though.

    Thread Starter strom

    (@strom)

    Just in case anyone has an idea here, please read the previous posts. I cannot get WP to send email notifications after posts. I have edited my php.ini file so that any call for an SMTP server routes to my available SMTP server, the “comments_notify” option is set to True, and a phpbb forum I have running on the same server sends mail through the external server as expected. If anyone with php configuration experience reads this…Help!

    I edited the class-pop.php include file (the $mailserver is blank by default)…
    var $MAILSERVER = ‘mail.yourserver.com’; // Set this to hard code the server name
    It’s working like a charm now…

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘External mail server help’ is closed to new replies.