Notify multiple email addresses

  • Posts: 126
  • Thank you received: 2
13 years 6 months ago #15736

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 Log in or Create an account to join the conversation.

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
13 years 6 months ago #15751

Please Log in or Create an account to join the conversation.

  • Posts: 126
  • Thank you received: 2
13 years 6 months ago #15772

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.

Please Log in or Create an account to join the conversation.

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
13 years 6 months ago #15787

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 ?

Please Log in or Create an account to join the conversation.

  • Posts: 126
  • Thank you received: 2
13 years 6 months ago #15791

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 ;)

Please Log in or Create an account to join the conversation.

Time to create page: 0.059 seconds
Powered by Kunena Forum