<?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: Get email notifications for new customers registrations</title>
	<atom:link href="https://nemops.com/email-notifications-new-customers/feed/" rel="self" type="application/rss+xml" />
	<link>https://nemops.com/email-notifications-new-customers/</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: mohamed bilal</title>
		<link>https://nemops.com/email-notifications-new-customers/comment-page-1/#comment-46813</link>
		<dc:creator><![CDATA[mohamed bilal]]></dc:creator>
		<pubDate>Wed, 09 Oct 2019 17:12:00 +0000</pubDate>
		<guid isPermaLink="false">http://nemops.com/?p=2264#comment-46813</guid>
		<description><![CDATA[Hi,
 I am new in prestashop. I wnat to send mail from admin when admin create new customer.]]></description>
		<content:encoded><![CDATA[<p>Hi,<br />
 I am new in prestashop. I wnat to send mail from admin when admin create new customer.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jayesh Naghera</title>
		<link>https://nemops.com/email-notifications-new-customers/comment-page-1/#comment-46809</link>
		<dc:creator><![CDATA[Jayesh Naghera]]></dc:creator>
		<pubDate>Mon, 09 Sep 2019 04:47:00 +0000</pubDate>
		<guid isPermaLink="false">http://nemops.com/?p=2264#comment-46809</guid>
		<description><![CDATA[Prestashop 1.7 Below Code already exits in CustomerPersister.php file.

protected function sendConfirmationMail(Customer $customer)
    {
        if (!Configuration::get(&#039;PS_CUSTOMER_CREATION_EMAIL&#039;))
            return true;
 
        return Mail::Send(
            $this-&gt;context-&gt;language-&gt;id,
            &#039;account&#039;,
            Mail::l(&#039;Welcome!&#039;),
            array(
                &#039;{firstname}&#039; =&gt; $customer-&gt;firstname,
                &#039;{lastname}&#039; =&gt; $customer-&gt;lastname,
                &#039;{email}&#039; =&gt; $customer-&gt;email,
                &#039;{passwd}&#039; =&gt; Tools::getValue(&#039;passwd&#039;)),
            $customer-&gt;email,
            $customer-&gt;firstname.&#039; &#039;.$customer-&gt;lastname
        );
    }

--&gt; For admin mail notification code add in this file.]]></description>
		<content:encoded><![CDATA[<p>Prestashop 1.7 Below Code already exits in CustomerPersister.php file.</p>
<p>protected function sendConfirmationMail(Customer $customer)<br />
    {<br />
        if (!Configuration::get(&#8216;PS_CUSTOMER_CREATION_EMAIL&#8217;))<br />
            return true;</p>
<p>        return Mail::Send(<br />
            $this-&gt;context-&gt;language-&gt;id,<br />
            &#8216;account&#8217;,<br />
            Mail::l(&#8216;Welcome!&#8217;),<br />
            array(<br />
                &#8216;{firstname}&#8217; =&gt; $customer-&gt;firstname,<br />
                &#8216;{lastname}&#8217; =&gt; $customer-&gt;lastname,<br />
                &#8216;{email}&#8217; =&gt; $customer-&gt;email,<br />
                &#8216;{passwd}&#8217; =&gt; Tools::getValue(&#8216;passwd&#8217;)),<br />
            $customer-&gt;email,<br />
            $customer-&gt;firstname.&#8217; &#8216;.$customer-&gt;lastname<br />
        );<br />
    }</p>
<p>&#8211;&gt; For admin mail notification code add in this file.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Miguel Angel Solla Sanchez</title>
		<link>https://nemops.com/email-notifications-new-customers/comment-page-1/#comment-46507</link>
		<dc:creator><![CDATA[Miguel Angel Solla Sanchez]]></dc:creator>
		<pubDate>Tue, 17 Jan 2017 13:09:00 +0000</pubDate>
		<guid isPermaLink="false">http://nemops.com/?p=2264#comment-46507</guid>
		<description><![CDATA[I guess is late for this, but I think he want say this:
Class AuthController extends AuthControllerCore
{
    protected function sendConfirmationMail(Customer $customer)
    {
        if (!Configuration::get(&#039;PS_CUSTOMER_CREATION_EMAIL&#039;))
            return true;
 
		Mail::Send(
            Configuration::get(&#039;PS_LANG_DEFAULT&#039;),
            &#039;account_for_admin&#039;,
            Mail::l(&#039;New client!&#039;),
            array(
                &#039;{firstname}&#039; =&gt; $customer-&gt;firstname,
                &#039;{lastname}&#039; =&gt; $customer-&gt;lastname,
                &#039;{email}&#039; =&gt; $customer-&gt;email
                ),
            Configuration::get(&#039;PS_SHOP_EMAIL&#039;),
            Configuration::get(&#039;PS_SHOP_NAME&#039;)
        );
		
        return Mail::Send(
            $this-&gt;context-&gt;language-&gt;id,
            &#039;account&#039;,
            Mail::l(&#039;Welcome!&#039;),
            array(
                &#039;{firstname}&#039; =&gt; $customer-&gt;firstname,
                &#039;{lastname}&#039; =&gt; $customer-&gt;lastname,
                &#039;{email}&#039; =&gt; $customer-&gt;email,
                &#039;{passwd}&#039; =&gt; Tools::getValue(&#039;passwd&#039;)),
            $customer-&gt;email,
            $customer-&gt;firstname.&#039; &#039;.$customer-&gt;lastname
        );
    }
     
}]]></description>
		<content:encoded><![CDATA[<p>I guess is late for this, but I think he want say this:<br />
Class AuthController extends AuthControllerCore<br />
{<br />
    protected function sendConfirmationMail(Customer $customer)<br />
    {<br />
        if (!Configuration::get(&#8216;PS_CUSTOMER_CREATION_EMAIL&#8217;))<br />
            return true;</p>
<p>		Mail::Send(<br />
            Configuration::get(&#8216;PS_LANG_DEFAULT&#8217;),<br />
            &#8216;account_for_admin&#8217;,<br />
            Mail::l(&#8216;New client!&#8217;),<br />
            array(<br />
                &#8216;{firstname}&#8217; =&gt; $customer-&gt;firstname,<br />
                &#8216;{lastname}&#8217; =&gt; $customer-&gt;lastname,<br />
                &#8216;{email}&#8217; =&gt; $customer-&gt;email<br />
                ),<br />
            Configuration::get(&#8216;PS_SHOP_EMAIL&#8217;),<br />
            Configuration::get(&#8216;PS_SHOP_NAME&#8217;)<br />
        );</p>
<p>        return Mail::Send(<br />
            $this-&gt;context-&gt;language-&gt;id,<br />
            &#8216;account&#8217;,<br />
            Mail::l(&#8216;Welcome!&#8217;),<br />
            array(<br />
                &#8216;{firstname}&#8217; =&gt; $customer-&gt;firstname,<br />
                &#8216;{lastname}&#8217; =&gt; $customer-&gt;lastname,<br />
                &#8216;{email}&#8217; =&gt; $customer-&gt;email,<br />
                &#8216;{passwd}&#8217; =&gt; Tools::getValue(&#8216;passwd&#8217;)),<br />
            $customer-&gt;email,<br />
            $customer-&gt;firstname.&#8217; &#8216;.$customer-&gt;lastname<br />
        );<br />
    }</p>
<p>}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Miguel Angel Solla Sanchez</title>
		<link>https://nemops.com/email-notifications-new-customers/comment-page-1/#comment-46506</link>
		<dc:creator><![CDATA[Miguel Angel Solla Sanchez]]></dc:creator>
		<pubDate>Tue, 17 Jan 2017 13:07:00 +0000</pubDate>
		<guid isPermaLink="false">http://nemops.com/?p=2264#comment-46506</guid>
		<description><![CDATA[Doesn&#039;t work.]]></description>
		<content:encoded><![CDATA[<p>Doesn&#8217;t work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ramon Riemersma</title>
		<link>https://nemops.com/email-notifications-new-customers/comment-page-1/#comment-46403</link>
		<dc:creator><![CDATA[Ramon Riemersma]]></dc:creator>
		<pubDate>Thu, 01 Sep 2016 10:03:00 +0000</pubDate>
		<guid isPermaLink="false">http://nemops.com/?p=2264#comment-46403</guid>
		<description><![CDATA[Hi Nemo,

Thanks for the great tutorial! I have a little problem by pasting the second piece of code in the AuthController.php. You talk about paste the code right before the return. Which return? 

Could you give me the total code of the AuthController.php override please?]]></description>
		<content:encoded><![CDATA[<p>Hi Nemo,</p>
<p>Thanks for the great tutorial! I have a little problem by pasting the second piece of code in the AuthController.php. You talk about paste the code right before the return. Which return? </p>
<p>Could you give me the total code of the AuthController.php override please?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
