- Posts: 126
- Thank you received: 2
Notify multiple email addresses
15 years 4 months ago #15736
by mett
Notify multiple email addresses was created by mett
Hello,
Please tell me how to add multiple emails recipients? For example, i want to send new order status notification to 2 email addresses: address1@mail.com,address2@mail.com but after press Ok i get this message:
PHPMAILER_RECIPIENTS_FAILED address1@mail.com,address2@mail.com
The email addresses are correct.
Please tell me how to add multiple emails recipients? For example, i want to send new order status notification to 2 email addresses: address1@mail.com,address2@mail.com but after press Ok i get this message:
PHPMAILER_RECIPIENTS_FAILED address1@mail.com,address2@mail.com
The email addresses are correct.
Please Log in or Create an account to join the conversation.
15 years 4 months ago #15751
by nicolas
Replied by nicolas on topic Re: Notify multiple email addresses
Hi,
That's a common problem on joomla apparently:
www.dmackmedia.net/dmforum/showthread.php?tid=27
forum.joomla.org/viewtopic.php?p=2136062
That's a common problem on joomla apparently:
www.dmackmedia.net/dmforum/showthread.php?tid=27
forum.joomla.org/viewtopic.php?p=2136062
Please Log in or Create an account to join the conversation.
15 years 4 months ago #15772
by mett
Replied by mett on topic Re: Notify multiple email addresses
Can't make it work. I changed code in controller.php in contacts, tried without username and password, without authentication..can't make it work.
Strange is that i can send mails to new users or using mass mail (with and without BCC). I can use vemod news mailer component to send notifications to all users...any other ideas?
P.S: i also tried to use address1@mail.com;address2@mail.com (using ; as delimiter), same problem.
Strange is that i can send mails to new users or using mass mail (with and without BCC). I can use vemod news mailer component to send notifications to all users...any other ideas?
P.S: i also tried to use address1@mail.com;address2@mail.com (using ; as delimiter), same problem.
Please Log in or Create an account to join the conversation.
15 years 4 months ago #15787
by nicolas
Replied by nicolas on topic Re: Notify multiple email addresses
That's strange.
Could you try to add the code:
if(is_string($mail->dst_email) && strpos($mail->dst_email,',')){
$mail->dst_email = explode(',',$mail->dst_email);
}
just before the code:
if(is_array($mail->dst_email)){
$this->mailer->addRecipient($mail->dst_email);
}else{
in the file administrator/components/com_hikashop/classes/mail.php and try again ?
Could you try to add the code:
if(is_string($mail->dst_email) && strpos($mail->dst_email,',')){
$mail->dst_email = explode(',',$mail->dst_email);
}
just before the code:
if(is_array($mail->dst_email)){
$this->mailer->addRecipient($mail->dst_email);
}else{
in the file administrator/components/com_hikashop/classes/mail.php and try again ?
Please Log in or Create an account to join the conversation.
15 years 4 months ago #15791
by mett
Replied by mett on topic Re: Notify multiple email addresses
hooray, it's working!
Thank you very much!
P.S: a CC/BCC field would be great to have it, especially for proving that an email was sent to client
Thank you very much!
P.S: a CC/BCC field would be great to have it, especially for proving that an email was sent to client
Please Log in or Create an account to join the conversation.
Time to create page: 0.185 seconds