Small code changes

I added the smtp_host variable so programmers can chose their smtp server.

I removed the duplicate code to send a text message.

Instead of using the time library, I used the datetime library. This I did because when subtracting 2 datetime objects you get a timedelta object. When printing a timedelta object you have the format you wanted.