Added keep-alive connection to SMTP. Fixed socket read/write timeouts. Added PHP useragent