Magento 1.9.4
Porto theme
I googled and googled and I can't believe I can't find an easy way to do this. This is what's happening:
Some bad person is feeding thousands and thousands of Email addresses into our Newsletter Subscription box. Then Emails go out which say:
logo and "You have been successfully subscribed to the newsletter. Thank you, companyNAME"
Then, when the people receive this Email, they either report it as SPAM or Google's and Yahoo's incoming mail filter won't even let it through and mark us as spammers right away which results in our inability to deliver genuine Order Confirmation Emails to customers.
We would like to keep the option for people to sign up for the Newsletter there but we really need to turn off that Email (allow customers to sign up for the newsletter but NO Email to be sent).
I checked here:
System - Configuration - Customers - Newsletter
--> but there is no option NOT to send the Email out - just pick your templates etc.
Simple solutions would be preferred - the only ones I found on the Internet so far were like editing and creating 10 files etc. and that seems unnecessarily complicated for such a simple ask.
Edited on Friday, July 2nd:
Trying to implement the steps proposed by Shoaib Munir below - I found the following code in my Subscriber.php file:
/**
* Sends out confirmation success email
*
* @return Mage_Newsletter_Model_Subscriber
*/
public function sendConfirmationSuccessEmail()
{
if ($this->getImportMode()) {
return $this;
}
if(!Mage::getStoreConfig(self::XML_PATH_SUCCESS_EMAIL_TEMPLATE)
|| !Mage::getStoreConfig(self::XML_PATH_SUCCESS_EMAIL_IDENTITY)
) {
return $this;
}
Shoaib says to: "change following function, just add return $this;" Where exactly do I add it as it already has return $this;
?
RESOLUTION:
The fix suggested by Shoaib Munir works. My path to copy to is:
/public_html/app/code/core/Mage/Newsletter/Model
My code ended up looking like this:
}
/**
* Sends out confirmation success email
*
* @return Mage_Newsletter_Model_Subscriber
*/
public function sendConfirmationSuccessEmail()
{
return $this;
if(!Mage::getStoreConfig(self::XML_PATH_SUCCESS_EMAIL_TEMPLATE)
|| !Mage::getStoreConfig(self::XML_PATH_SUCCESS_EMAIL_IDENTITY)
) {
return $this;
}
I hope this helps someone.