Title: External mail server help
Last modified: August 18, 2016

---

# External mail server help

 *  [strom](https://wordpress.org/support/users/strom/)
 * (@strom)
 * [22 years, 3 months ago](https://wordpress.org/support/topic/external-mail-server-help/)
 * 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](https://wordpress.org/support/users/strom/)
 * (@strom)
 * [22 years, 3 months ago](https://wordpress.org/support/topic/external-mail-server-help/#post-38456)
 * 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.
 *  [TechGnome](https://wordpress.org/support/users/techgnome/)
 * (@techgnome)
 * [22 years, 3 months ago](https://wordpress.org/support/topic/external-mail-server-help/#post-38484)
 * 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](https://wordpress.org/support/users/strom/)
 * (@strom)
 * [22 years, 3 months ago](https://wordpress.org/support/topic/external-mail-server-help/#post-38580)
 * 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](https://wordpress.org/support/users/strom/)
 * (@strom)
 * [22 years, 2 months ago](https://wordpress.org/support/topic/external-mail-server-help/#post-38768)
 * 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!
 *  [Mustache](https://wordpress.org/support/users/mustache/)
 * (@mustache)
 * [22 years, 1 month ago](https://wordpress.org/support/topic/external-mail-server-help/#post-38831)
 * 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.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 3 participants
 * Last reply from: [Mustache](https://wordpress.org/support/users/mustache/)
 * Last activity: [22 years, 1 month ago](https://wordpress.org/support/topic/external-mail-server-help/#post-38831)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
