Magento by default is using built in
PHP mail() function to send e-mails. Commonly some important settings are left at their default values in Magento admin, and are often overlooked or forgotten. By default most people are just configuring default mail sending address in Magento, and stop at that.
This will only set the
<from: > e-mail address in
$additional_headers field for
mail() function. This will indeed put a mail from address in recipients inbox to your mail address but if we inspect the mail headers and server logs actual sending e-mail address will be something like
firstname.lastname@example.org. This alone will be reason enough for some spam filters to classify that mail as spam since mail-from and envelope-from will be a
<from:> headers will be your configured e-mail address.
In this case I’ve used
email@example.com as a “true” senders address but this may vary, depending on how your web server is configured.
System > Configuration > Advanced > System > Mail Sending Settings >
Set Return-Path to YES
- When you’re sending an e-mail from a server inside your domain, make
sure it has its own IP address and its
hostname is resolved to that
‘WHITE’ IP ADDRESS
- Sometimes your IP address may become blacklisted, if you lost your
reputation by sending wrong e-mails. After you got a new IP address
from your provider, it’s recommended not to use this address for at
least a month. The reason behind this is that your new IP address
might already be used by someone else before. This 1 month delay lets
the IP address get cleared and became ‘
- A good solution is to use SMTP server to send e-mails in
Magento. It can be a public one (such as Gmail, Yahoo and so on, if
you trust them), or your private mail server.
RECOMMENDED E-MAIL STRUCTURE IN MAGENTO