At the beginning of the launch of magento, a problem occurred in the email. At this time, the commonly used mail templates have been edited, such as new account, new order, and password forget. Sending emails in centos is simple. You only need to install Sendmail and install sendmail. You only need to install Yum install sendmail. magento is also easy to send emails, you only need to set the sender name and email address in the admin background. So where is the problem? The following figure shows a few unclear statements:
1. In the inbox list, the sender is WWW
2. In the mail TITLE section Sent by ([email protected).
After receiving the email, the customer will think that the website is too unprofessional and informal! Someone may ask, where did the above [www] and [magentoeye.magentoeye.com] come from? Wow! [Magentoeye.magentoeye.com] is the name of the website server host. Run the hostname command on the server to view the following results:
2 |
Magentoeye.magentoeye.com |
[Magento[] in the previous section is the real host name, and [magentoeye.com] in the later section is the domain name ). The answer to another is: [www] is the user name for executing the PHP script process. When Sendmail sends an email, if no additional parameter is specified, it uses the current host name as the email server by default, and the Linux User name used to send the email as the sender, adding it to the mail header information.
Well, how can we solve these two problems so that magento emails look more professional? Although it is not easy to find answers, it is easy to operate. In admin-> system-> Configuration-> advanced-> system-> mail sending settings, set [The value of set return-path] is [Yes]. As shown in:
After saving the settings, let magento send an email again. After receiving the email, the effect is as follows:
It looks much better and still has some flaws. For example, in the mailbox list, the sender you want to see is [magentoeye.com] rather than [support]. Set the sender name as follows:
The final result is as follows: