Controlling "off the shelf" Smart sockets

this issue needs to be solved in your Arduino code. have a look at this workaround Sending a lot of SMS alert and email