Host site and send email alerts

First, this is confusing:

WiFiServer server(80);

...

  char server[] = "api.pushingbox.com";

Try using different names for totally different things.


You also have two "client" variables:

WiFiClient client;

...

  WiFiClient client = server.available();

Give them different names too.