Page 1 of 1

Additional Alert Mail Issue

Posted: Fri Nov 25, 2011 5:50 pm
by robinlolo
Hello Guys ,

In the general tab i have set email 1stmail@mydomain.com
=================================================
in the mail tab my configuration is as follow :
Mail Protocol: Mail
Mail Parameters:
SMTP Host:
SMTP Username:
SMTP Password:
SMTP Port:
SMTP Timeout:
New Order Alert Mail:
Yes
New Account Alert Mail:
Yes
Additional Alert E-Mails:
2ndmail@mydomain.com,3rdmail@mydomain.com



when new customer register .. it send Email to customer and 1stmail with no problem
but doesn't send to the 2ndmail and 3rdmail in the additional alert mail .

Please help me as soon as you can

Re: Additional Alert Mail Issue

Posted: Fri Nov 25, 2011 5:54 pm
by uksitebuilder
try adding in Mail Parameters: -f1stmail@mydomain.com

Re: Additional Alert Mail Issue

Posted: Fri Nov 25, 2011 6:07 pm
by robinlolo
I tried it but .. it's not working

Re: Additional Alert Mail Issue

Posted: Sat Nov 26, 2011 2:59 am
by robinlolo
No Help !!!!!

Re: Additional Alert Mail Issue

Posted: Sat Nov 26, 2011 3:07 am
by uksitebuilder
check you have the following in catalog/codel/checkout/order.php

Code: Select all

				foreach ($emails as $email) {
					if ($email && preg_match('/^[^\@]+@.*\.[a-z]{2,6}$/i', $email)) {
						$mail->setTo($email);
						$mail->send();
					}
				}				

Re: Additional Alert Mail Issue

Posted: Sat Nov 26, 2011 1:35 pm
by robinlolo
I have this in order.php

// Send to additional alert emails
$pattern = '/^[A-Z0-9._%-+]+@[A-Z0-9][A-Z0-9.-]{0,61}[A-Z0-9]\.[A-Z]{2,6}$/i';
$emails = explode(',', $this->config->get('config_alert_emails'));
foreach ($emails as $email) {
if (strlen($email) > 0 && preg_match($pattern, $email)) {
$mail->setTo($email);
$mail->send();
}
}

Re: Additional Alert Mail Issue

Posted: Sat Nov 26, 2011 1:40 pm
by robinlolo
but i don't have it in catalog/controller/account/create.php
do i have to add it ? and where ?

Re: Additional Alert Mail Issue

Posted: Sat Nov 26, 2011 5:39 pm
by uksitebuilder
I was assuming you were using the latest version of OpenCart as you hadn't bothered to put what version you are using

Re: Additional Alert Mail Issue

Posted: Sat Nov 26, 2011 5:59 pm
by robinlolo
I don't know which version i have :( i am sorry

Re: Additional Alert Mail Issue

Posted: Sat Nov 26, 2011 6:03 pm
by robinlolo
Tell me how to figure this out and i will tell you the version

Re: Additional Alert Mail Issue

Posted: Sat Nov 26, 2011 6:08 pm
by uksitebuilder
edit index.php

version should be at the top

Re: Additional Alert Mail Issue

Posted: Sat Nov 26, 2011 6:10 pm
by robinlolo
1.4.9.4

Re: Additional Alert Mail Issue

Posted: Sat Nov 26, 2011 6:24 pm
by uksitebuilder
I suggest upgrading to 1.4.9.6 where email alerts were added to the account create function

Re: Additional Alert Mail Issue

Posted: Sat Nov 26, 2011 6:26 pm
by robinlolo
is it a free upgrade ?? if yes please provide me a tutorial to do that .
if i can't upgrade ..... there aren't any solutions ?

Thank you so much

Re: Additional Alert Mail Issue

Posted: Sat Nov 26, 2011 6:39 pm
by uksitebuilder
of course upgrading is free

visit the download link at the top of this site

download 1.4.9.6

read and follow the upgrade.txt file in the download archive

Re: Additional Alert Mail Issue

Posted: Sat Nov 26, 2011 6:43 pm
by robinlolo
Thank you so much

Re: Additional Alert Mail Issue

Posted: Wed Aug 07, 2013 12:40 am
by madelharri
Hi
I have a problem with the additional alert emails - none of them are coming through at all. I am on Opencart 1.5.4. I've got 4 emails that are supposed to get alerts; all correct and all separated by commas.
I've checked catalog/model/checkout/order.php and this code is there

Code: Select all
foreach ($emails as $email) {
if ($email && preg_match('/^[^\@]+@.*\.[a-z]{2,6}$/i', $email)) {
$mail->setTo($email);
$mail->send();
}
}
Can anybody help please?

Re: Additional Alert Mail Issue

Posted: Wed Aug 14, 2013 9:53 pm
by madelharri
Hi
Is there nobody out there that can help please?
Thanks

Re: Additional Alert Mail Issue

Posted: Wed May 18, 2016 5:00 am
by StormDesigner
I'm in a similar situation and using 2.0.3.1 and while our store sends email alerts and contact forms to the main store admin email it doesn't appear to be sending at all to the additional Alert E-Mails.

Is there a setting in admin that would prevent this from working?
Is it a known issue?
Is there a (fairly straightforward) code based workaround?

The store owner does receive emails (alerts and orders) so I know it can work and it isn't a server issue in that sense.

I feel like this worked previously.

Re: Additional Alert Mail Issue

Posted: Tue Jun 28, 2016 2:37 pm
by Yaderground
Hi there,

This may sound ridiculously easy, but I spend way too much time on this :

To enable additionnal alert emails,

1 ) go to your settings page,
2 ) select tab : option
3 ) look for "New Order Alert Email" in the checkout section
4 ) check the box

It allows sending emails to your additional email adress in the case an order is placed.

I hope it will help some of you !