check website status using curl and send mail