added HTTP error check + changed timing + optimized subject line and body length