<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>Comments on: Blocking spam emails in PrestaShop</title>
	<atom:link href="https://nemops.com/blocking-spam-emails-in-prestashop/feed/" rel="self" type="application/rss+xml" />
	<link>https://nemops.com/blocking-spam-emails-in-prestashop/</link>
	<description>Prestashop Tutorials, Modules and More!</description>
	<lastBuildDate>Fri, 10 Mar 2023 23:25:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.35</generator>
	<item>
		<title>By: eleazar</title>
		<link>https://nemops.com/blocking-spam-emails-in-prestashop/comment-page-1/#comment-46853</link>
		<dc:creator><![CDATA[eleazar]]></dc:creator>
		<pubDate>Mon, 08 Mar 2021 14:22:00 +0000</pubDate>
		<guid isPermaLink="false">http://nemops.com/?p=3145#comment-46853</guid>
		<description><![CDATA[Thank you, helped me to block an absolutely annoying marketing company from the contact page. But the code didn&#039;t work properly until I added a &lt;i&gt;return&lt;/i&gt; as last command in both foreach-clauses.


&lt;code&gt;  foreach ($banned_in_email as $string) {
                if(strstr($from, $string))
                    $this-&gt;errors[] = Tools::displayError(&#039;Invalid email address.&#039;);
                    return;
            }
 
            foreach ($banned_content as $string) {
                if(strstr($message, $string))
                    $this-&gt;errors[] = Tools::displayError(&#039;Invalid Content&#039;);        
                    return;
            }&lt;/code&gt;




And I&#039;d recommend to use the complete function together with your added code as override.]]></description>
		<content:encoded><![CDATA[<p>Thank you, helped me to block an absolutely annoying marketing company from the contact page. But the code didn&#8217;t work properly until I added a <i>return</i> as last command in both foreach-clauses.</p>
<p><code>  foreach ($banned_in_email as $string) {<br />
                if(strstr($from, $string))<br />
                    $this-&gt;errors[] = Tools::displayError('Invalid email address.');<br />
                    return;<br />
            }</p>
<p>            foreach ($banned_content as $string) {<br />
                if(strstr($message, $string))<br />
                    $this-&gt;errors[] = Tools::displayError('Invalid Content');<br />
                    return;<br />
            }</code></p>
<p>And I&#8217;d recommend to use the complete function together with your added code as override.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gordon</title>
		<link>https://nemops.com/blocking-spam-emails-in-prestashop/comment-page-1/#comment-46836</link>
		<dc:creator><![CDATA[Gordon]]></dc:creator>
		<pubDate>Sat, 18 Apr 2020 08:37:00 +0000</pubDate>
		<guid isPermaLink="false">http://nemops.com/?p=3145#comment-46836</guid>
		<description><![CDATA[These tutorials are awesome. Thank you so much.
I have tried the above code and I get the info &quot;This email address is not allowed&quot; and website looks like message was not send but when I check admin panel it&#039;s there. PS 1.7.6.1]]></description>
		<content:encoded><![CDATA[<p>These tutorials are awesome. Thank you so much.<br />
I have tried the above code and I get the info &#8220;This email address is not allowed&#8221; and website looks like message was not send but when I check admin panel it&#8217;s there. PS 1.7.6.1</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stocks</title>
		<link>https://nemops.com/blocking-spam-emails-in-prestashop/comment-page-1/#comment-46808</link>
		<dc:creator><![CDATA[Stocks]]></dc:creator>
		<pubDate>Mon, 26 Aug 2019 06:44:00 +0000</pubDate>
		<guid isPermaLink="false">http://nemops.com/?p=3145#comment-46808</guid>
		<description><![CDATA[Thank you for a good update. 



Is there anyway of including your script in the existing controller?


Thanks]]></description>
		<content:encoded><![CDATA[<p>Thank you for a good update. </p>
<p>Is there anyway of including your script in the existing controller?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kon Rad</title>
		<link>https://nemops.com/blocking-spam-emails-in-prestashop/comment-page-1/#comment-46802</link>
		<dc:creator><![CDATA[Kon Rad]]></dc:creator>
		<pubDate>Fri, 12 Jul 2019 10:53:00 +0000</pubDate>
		<guid isPermaLink="false">http://nemops.com/?p=3145#comment-46802</guid>
		<description><![CDATA[/var/cache/(dev/prod) in 1.7 ;) but this not works anyway]]></description>
		<content:encoded><![CDATA[<p>/var/cache/(dev/prod) in 1.7 <img src="https://nemops.com/wp-includes/images/smilies/icon_wink.gif" alt=";)" class="wp-smiley" /> but this not works anyway</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: carloalberto</title>
		<link>https://nemops.com/blocking-spam-emails-in-prestashop/comment-page-1/#comment-46776</link>
		<dc:creator><![CDATA[carloalberto]]></dc:creator>
		<pubDate>Mon, 17 Dec 2018 10:57:00 +0000</pubDate>
		<guid isPermaLink="false">http://nemops.com/?p=3145#comment-46776</guid>
		<description><![CDATA[I tried but there is no file &quot;cache/class_index.php&quot; to delete, and so the contact form works as before..]]></description>
		<content:encoded><![CDATA[<p>I tried but there is no file &#8220;cache/class_index.php&#8221; to delete, and so the contact form works as before..</p>
]]></content:encoded>
	</item>
</channel>
</rss>
