problem with smtp.c

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.