Improved Email Bot Script