bluehost是一款性价比很高的虚拟主机,很多外贸网站都使用bluehost安装zen cart,就连Magento这种很耗资源的程序,在bluehost也能跑的相当的快。
在BlueHost上Magento的邮件服务设置后,显示form: username@hostxxx.bluehost.com ,下面详细介绍一下如何解决这个问题,其它的美国主机和其它网站程序同样可以参考下面的方法。
1.创建一个E-mail帐户:
进入:cPanel–>mail–>Email Accounts
创建名为 yourmail@yourdomain.com
2.设置php.ini
生成一个默认的php.ini文件php.ini.default,用文本编辑器查找:sendmail_path
将 sendmail_path = “/usr/sbin/sendmail -t -i” 修改为: sendmail_path = “/usr/sbin/sendmail -t -i -fyourmail@yourdomain.com” -t、 -i、 -f为参数,还可以使用参数-n, 如这样: sendmail_path = “/usr/sbin/sendmail -t -i -fyourmail@yourdomain.com -nyourcompanyname”
