1

I am using Joomla and SP Page Builder. I have back-end side and front-end side. I would like to add multiple recipients for sent emails from my contact form. I have found related codes for sending emails. What should be edited to add multiple email addresses on my back-end? I have tried to play with

$recipients = array(
  "address@domain.com",
);
$email_to = implode(',', $recipients); 

with no success

Here is my front-end code:

$recipient_email = (isset($this->addon->settings->recipient_email) && $this->addon->settings->recipient_email) ? $this->addon->settings->recipient_email : '';

Here is what I have in back-end:

    'recipient_email'=>array(
        'type'=>'text',
        'title'=>JText::_('COM_SPPAGEBUILDER_ADDON_AJAX_CONTACT_RECIPIENT_EMAIL'),
        'desc'=>JText::_('COM_SPPAGEBUILDER_ADDON_AJAX_CONTACT_RECIPIENT_EMAIL_DESC'),
        'std'=>'email@yourdomain.com'
    ),

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.