I'm playing around with having the arduino send an email back to me. Everything else is fine but I run smack into a wall with the Client declaration:
Client client(server,port);
And I'm pretty sure it's because I'm using char server[]="mail.someserver.com" instead of an IP as the Client class is expecting 4 int values.
Is this actually a lack of DNS capability in the libraries? or is there a way?
I have tried simply connecting, as the .connect protocol will allow a char array. But no joy.
Using an IP works but I don't have the IP for our mail server.
As a simple test, open a command window and "ping" the mail server. It should give you back the IP address of the server. You should be able to test that way although someone else will need to explain the issue you are having resolving the name - I am not that familiar with the libraries yet.
Everything else is fine but I run smack into a wall with the Client declaration:
When you get tired of smacking into the wall, perhaps you could tell us EXACTLY what the problem is. The EthernetClient constructor can take either a server name or an IP address. If you supply a name, you need to have started the Ethernet class with a DNS address that it can access to look up the IP address corresponding to the name.
I had assumed (probably incorrectly) your mail server was inside your LAN - if it is outside on the ISP site or something then yes, you will get back an address that does not look anything like the addresses on your local network.