# problem with smtp.c

**URL:** <https://forums.digi.com/t/problem-with-smtp-c/8825>\
**Category:** Rabbit\
**Created:** [September 17, 2007, 10:27am UTC](https://forums.digi.com/t/problem-with-smtp-c/8825 "2007-09-17T10:27:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kim](https://avatars.discourse-cdn.com/v4/letter/k/9f8e36/32.png) [@Kim](https://forums.digi.com/u/Kim)\
**Post date:** [September 17, 2007, 10:27am UTC](https://forums.digi.com/t/problem-with-smtp-c/8825/1 "2007-09-17T10:27:47Z")

</div>

Hello. I keep getting "cannot resolve host (-2) when I try to run this sample. I have tried with several different mail servers. I noticed that there was a similar post where a member suggested setting the max number of sockets to 20. This  
didn’t work either. I can get the http examples to work so I guess the IP info I edited is OK. Thanks in advance for any insights/suggestions.
