Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>For send Email to Multiple recipients in Contact Us Magento, you can tray this way.</p> <p>Step One, you can Find this line on app/code/core/Mage/Contacts/Controllers/IndexController.php</p> <pre><code>$mailTemplate = Mage::getModel('core/email_template'); /* @var $mailTemplate Mage_Core_Model_Email_Template */ $mailTemplate-&gt;setDesignConfig(array('area' =&gt; 'frontend')) -&gt;setReplyTo($post['email']) -&gt;sendTransactional( Mage::getStoreConfig(self::XML_PATH_EMAIL_TEMPLATE), Mage::getStoreConfig(self::XML_PATH_EMAIL_SENDER), Mage::getStoreConfig(self::XML_PATH_EMAIL_RECIPIENT), null, array('data' =&gt; $postObject) ); </code></pre> <p>and modified to bellow :</p> <pre><code> $recipients = Mage::getStoreConfig(self::XML_PATH_EMAIL_RECIPIENT); if ($recipients) { $recipients = explode(";",$recipients); if(count($recipients)) { foreach($recipients as $recipient) { $mailTemplate = Mage::getModel('core/email_template'); /* @var $mailTemplate Mage_Core_Model_Email_Template */ $mailTemplate-&gt;setDesignConfig(array('area' =&gt; 'frontend')) -&gt;setReplyTo($post['email']) -&gt;sendTransactional( Mage::getStoreConfig(self::XML_PATH_EMAIL_TEMPLATE), Mage::getStoreConfig(self::XML_PATH_EMAIL_SENDER), $recipient, null, array('data' =&gt; $postObject) ); if (!$mailTemplate-&gt;getSentSuccess()) { throw new Exception(); } } } } </code></pre> <p>And don't forget to comment validation javascript on app/code/core/Mage/Contacts/etc/system.xml</p> <p>Find this line :</p> <pre><code>&lt;recipient_email translate="label"&gt; &lt;label&gt;Send Emails To&lt;/label&gt; &lt;frontend_type&gt;text&lt;/frontend_type&gt; &lt;!--&lt;validate&gt;validate-email&lt;/validate&gt;--&gt; &lt;sort_order&gt;10&lt;/sort_order&gt; &lt;show_in_default&gt;1&lt;/show_in_default&gt; &lt;show_in_website&gt;1&lt;/show_in_website&gt; &lt;show_in_store&gt;1&lt;/show_in_store&gt; &lt;/recipient_email&gt; </code></pre> <p>Give comment to this line <code>&lt;validate&gt;validate-email&lt;/validate&gt;</code></p> <p>this code works for me in magento 1.7.0.2 . I hope this help your problem.. :D</p> <p>Don't forget to save and clear cache..</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload