Title: e-mail plugin problem
Last modified: August 18, 2016

---

# e-mail plugin problem

 *  [perfectlover](https://wordpress.org/support/users/perfectlover/)
 * (@perfectlover)
 * [21 years, 7 months ago](https://wordpress.org/support/topic/e-mail-plugin-problem/)
 * I am getting following error , when i am using e-mail plugin
    Warning: fsockopen():
   unable to connect to localhost:25 in /xxx/xxxx/public_html/ssa/wp-includes/class-
   smtp.php on line 105 Language string failed to load: connect_host any one have
   any idea thanks

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

 *  [adsworth](https://wordpress.org/support/users/adsworth/)
 * (@adsworth)
 * [21 years, 7 months ago](https://wordpress.org/support/topic/e-mail-plugin-problem/#post-113322)
 * Hi,
    an idea yes. 🙂 the plugin is trying to send an email via an smtp server
   on localhost, which doesn’t have smtp server installed, so the connection fails.
   You need find the place where to tell the plugin which smtp server to use and
   give it the hostname of your smtp server (providers smtp server). Regards Adi
 *  Thread Starter [perfectlover](https://wordpress.org/support/users/perfectlover/)
 * (@perfectlover)
 * [21 years, 7 months ago](https://wordpress.org/support/topic/e-mail-plugin-problem/#post-113337)
 * Thanks for reply. after giving smtp address i am getting following error,
    Warning:
   fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not
   known in /home/xxx/public_html/xxx/wp-includes/class-smtp.php on line 105 Warning:
   fsockopen(): unable to connect to smtp.varshneys.net:25 in /home/xxx/public_html/
   xxx/wp-includes/class-smtp.php on line 105 Language string failed to load: connect_host
   However, I am using same smtp address to send mail when some one post comments,
   I am getting proper mails.
 *  [adsworth](https://wordpress.org/support/users/adsworth/)
 * (@adsworth)
 * [21 years, 6 months ago](https://wordpress.org/support/topic/e-mail-plugin-problem/#post-114004)
 * Hi,
    it looks like the servername smtp.varshneys.net doesn’t exists. I definitly
   can’t find an IP address to the name. Regards Adi

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

The topic ‘e-mail plugin problem’ is closed to new replies.

 * 3 replies
 * 2 participants
 * Last reply from: [adsworth](https://wordpress.org/support/users/adsworth/)
 * Last activity: [21 years, 6 months ago](https://wordpress.org/support/topic/e-mail-plugin-problem/#post-114004)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
