- Posts: 125
- Thank you received: 0
Is it possible to have contact forms sent to 2 E-mail Recipient?
-
paul1
Active member - Topic Author
- Member
Less
More
-
milos
Support Staff - Moderator
Less
More
- Posts: 6766
- Thank you received: 719
5 months 3 weeks ago #51483
by milos
Replied by milos on topic Is it possible to have contact forms sent to 2 E-mail Recipient?
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:
with this:
Now, in the module parameters, under E-mail Settings > E-mail Recipient, you can add multiple email addresses separated by a semicolon, for example:
Please test if it works and let us know.
Regards,
Milos
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
Less
More
- Posts: 125
- Thank you received: 0
5 months 3 weeks ago #51486
by paul1
Replied by paul1 on topic Is it possible to have contact forms sent to 2 E-mail Recipient?
MANY THANKS Milos.
Tested and perfect!
Thanks again for EXCELLENT support!
Paul
Tested and perfect!
Thanks again for EXCELLENT support!
Paul
Please Log in to join the conversation.
Time to create page: 0.151 seconds