Problem one, Magento itself with the mail sent, some messages can not be sent, installed Aschroder_smtppro Plug-ins, can only
Use Gmail servers because of the plugin problem
App/code/community/aschroder/smtppro/controllers
indexcontroller.php 90 Lines
The code is as follows |
Copy Code |
$mail->addto ($to) ->setfrom ("veric@nieger.com") ->setsubject ($sub) ->setbodytext ($body); |
Change into their own mailbox server, the original is the developer's Gmail
Problem two, Magento can't send email, there are more problems after installing aschroder_smtppro-1.4.3 SMTP
1.sendfriend the message could not be sent because the sender could not be obtained after changing to SMTP and the solution
App/code/core/mage/sendfriend/model sendfriend.php
The code is as follows |
Copy Code |
/* $sender = Array ( ' Name ' => $this->_gethelper ()->htmlescape ($this->getsender ()->getname ()), ' Email ' => $this->_gethelper ()->htmlescape ($this->getsender ()->getemail ()) ); */ /*veric@dev * $sender = Array ( ' Name ' => mage::getstoreconfig (' General/store_information/name '), ' Email ' => mage::getstoreconfig (' Trans_email/ident_general/email ') ); |
2. Invite friends unable to send mail App/code/community/rewardpoints/model
referral.php
The code is as follows |
Copy Code |
/* $sender = Array ( ' Name ' => strip_tags ($parent->getfirstname (). ' '. $parent->getlastname ()), ' Email ' => strip_tags ($parent->getemail ()) ); */ $sender = Array ( ' Name ' => mage::getstoreconfig (' General/store_information/name '), ' Email ' => mage::getstoreconfig (' Trans_email/ident_general/email ') ); |
Rewrite fetch.