How to troubleshoot email sending problem in Magento?