Is it possible to have contact forms sent to 2 E-mail Recipient?

  • paul1
    Active member
  • Topic Author
  • Member
  • Member
More
5 months 3 weeks ago #51482 by paul1
Hi Milos

Is it possible to have contact forms sent to 2 E-mail Recipient?

My thanks

Please Log in to join the conversation.

  • milos
    Support Staff
  • Moderator
  • Moderator
More
5 months 3 weeks ago #51483 by milos
Hello,

It's currently not possible, but let's try to add this feature. Please edit the module file mod_hot_simple_contact.php. Around line 81, change this:
Code:
// recipient $mailer->addRecipient($emailrecipient);

with this:
Code:
// recipient if (str_contains($emailrecipient, ";")) { $emailrecipients = explode(";", $emailrecipient); foreach ($emailrecipients as &$recipient) { $mailer->addRecipient($recipient); } } else { $mailer->addRecipient($emailrecipient); }

Now, in the module parameters, under E-mail Settings > E-mail Recipient, you can add multiple email addresses separated by a semicolon, for example:
Code:
user1@email.com;user2@email.com

Please test if it works and let us know.

Regards,
Milos

Please Log in to join the conversation.

  • paul1
    Active member
  • Topic Author
  • Member
  • Member
More
5 months 3 weeks ago #51486 by paul1
MANY THANKS Milos.
Tested and perfect!

Thanks again for EXCELLENT support!

Paul

Please Log in to join the conversation.

Time to create page: 0.151 seconds
Powered by Kunena Forum