Is form submission to more than one recipien possible. Tried a few things, but no luck.

lawson
31 Posts
lawson posted this 05 October 2021
Ask a Question

Below is some code. I'll describe what I tried. I have a hunch I know why certain things didn't work, but I'm looking for a solution if someone has one.

$form = array(

'subject' => 'Inquiry from website',
'email_message' => 'You have a new form submission from your website. ',
'success_redirect' => '',
'email' => array(
'from' => 'noreply@mywebsie.com',
'to' => 'reportrecipient@gmail.com'
),

I tried the following.
- I added a second address to the 'to' field. I just put a comma, than a second address and closed with a comma.
- I then tried the 'to' field on a separate line with and without a comma. What would happen was that the email would go to the second 'to' field, but not the first.
- I decided that perhaps a 'cc' field would be the resolution, but that didn't work, but if the software isn't looking for a ''cc' field, then there was not likely supporting code.

So, give or take a couple variations, that was the base of what I did. I edit code, refresh the server, refresh the website, and even used another browser to make sure cache was clean.

So, problem not solved, can I send to multiple people in some way? Anybody? Plus not everyone uses the same email service, and my customers aren't always that savvy in applying whitelist filters and the like. But if I can send direct, that would be most direct solution. I suppose that any incoming mail could be "filtered" to forward to send a copy to someone else, but that puts the work on my client who barely can open gmail. Can I fix without them, or minimal input?

Thanks!

Lawson

Below is some code. I'll describe what I tried. I have a hunch I know why certain things didn't work, but I'm looking for a solution if someone has one. $form = array( 'subject' => 'Inquiry from website', 'email_message' => 'You have a new form submission from your website. ', 'success_redirect' => '', 'email' => array( 'from' => 'noreply@mywebsie.com', 'to' => 'reportrecipient@gmail.com' ), I tried the following. - I added a second address to the 'to' field. I just put a comma, than a second address and closed with a comma. - I then tried the 'to' field on a separate line with and without a comma. What would happen was that the email would go to the second 'to' field, but not the first. - I decided that perhaps a 'cc' field would be the resolution, but that didn't work, but if the software isn't looking for a ''cc' field, then there was not likely supporting code. So, give or take a couple variations, that was the base of what I did. I edit code, refresh the server, refresh the website, and even used another browser to make sure cache was clean. So, problem not solved, can I send to multiple people in some way? Anybody? Plus not everyone uses the same email service, and my customers aren't always that savvy in applying whitelist filters and the like. But if I can send direct, that would be most direct solution. I suppose that any incoming mail could be "filtered" to forward to send a copy to someone else, but that puts the work on my client who barely can open gmail. Can I fix without them, or minimal input? Thanks! Lawson
Vote to pay developers attention to this features or issue.
6 Replies
Order By: Standard | Newest
Support Team
Support Team posted this 12 October 2021

Hello Lawson,

Terribly sorry for the delay with reply.

It is possible to send the form submission to multiply emails.
Please check the examples from this tutorial - https://www.php.net/manual/en/function.mail.php
Hope you will set it up.

Let us know if you have any other questions.
...................................................
Sincerely,
Anna T
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hello Lawson, Terribly sorry for the delay with reply. It is possible to send the form submission to multiply emails. Please check the examples from this tutorial - https://www.php.net/manual/en/function.mail.php Hope you will set it up. Let us know if you have any other questions. ................................................... Sincerely, Anna T Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
lawson
31 Posts
lawson posted this 15 October 2021

I find that many of my questions to support are replied to with complex and unrelated links to pages with much more information than I need. It seems there is either a simple answer or not, so let me try again.

Following is your code with a couple privacy settings. Can I alter this code specifically to send to more than one address. I tried a variety of ways to add to the list of recipients but with no luck. If there isn't a simple solution, then I'll just hope it is something that is added as a feature in the future. Thank you.

<?php require_once('formprocessor.php'); $form require_once('formprocessor.php'); $form?> 'subject' => 'Inquiry from website',

'email_message' => 'You have a new form submission from Apartments of. ',
'success_redirect' => '',
'email' => array(
'from' => 'noreply@apartmentsof.com',
'to' => 'jordan@gmail.com'
),
'fields' => array(
'name' => array(
'order' => 1,
'type' => 'string',
'label' => 'Name',
'required' => true,
'errors' => array(
'required' => 'Field \'Name\' is required.'
)
),
'email' => array(
'order' => 2,
'type' => 'email',
'label' => 'Email',
'required' => true,
'errors' => array(
'required' => 'Field \'Email\' is required.'
)
),
'phone' => array(
'order' => 3,
'type' => 'tel',
'label' => 'Phone',
'required' => true,
'errors' => array(
'required' => 'Field \'Phone\' is required.'
)
),
'message-1' => array(
'order' => 4,
'type' => 'string',
'label' => 'Message',
'required' => true,
'errors' => array(
'required' => 'Field \'Message\' is required.'
)
),
)
);

$processor = new FormProcessor();
$processor->process($form);

?>
I find that many of my questions to support are replied to with complex and unrelated links to pages with much more information than I need. It seems there is either a simple answer or not, so let me try again. Following is your code with a couple privacy settings. Can I alter this code specifically to send to more than one address. I tried a variety of ways to add to the list of recipients but with no luck. If there isn't a simple solution, then I'll just hope it is something that is added as a feature in the future. Thank you. &lt;?php require_once(&#39;formprocessor.php&#39;); $form require_once(&#39;formprocessor.php&#39;); $form?&gt; 'subject' => 'Inquiry from website', 'email_message' => 'You have a new form submission from Apartments of. ', 'success_redirect' => '', 'email' => array( 'from' => 'noreply@apartmentsof.com', 'to' => 'jordan@gmail.com' ), 'fields' => array( 'name' => array( 'order' => 1, 'type' => 'string', 'label' => 'Name', 'required' => true, 'errors' => array( 'required' => 'Field \'Name\' is required.' ) ), 'email' => array( 'order' => 2, 'type' => 'email', 'label' => 'Email', 'required' => true, 'errors' => array( 'required' => 'Field \'Email\' is required.' ) ), 'phone' => array( 'order' => 3, 'type' => 'tel', 'label' => 'Phone', 'required' => true, 'errors' => array( 'required' => 'Field \'Phone\' is required.' ) ), 'message-1' => array( 'order' => 4, 'type' => 'string', 'label' => 'Message', 'required' => true, 'errors' => array( 'required' => 'Field \'Message\' is required.' ) ), ) ); $processor = new FormProcessor(); $processor->process($form); ?>
Support Team
Support Team posted this 21 October 2021

Hi,

Did you try the following format?

'to' => 'reportrecipient@gmail.com, reportrecipient2@gmail.com'

...................................................
Sincerely,
Olivia
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hi, Did you try the following format? 'to' => 'reportrecipient@gmail.com, reportrecipient2@gmail.com' ................................................... Sincerely, Olivia Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
lawson
31 Posts
lawson posted this 23 October 2021

I'll have to try it again. I went through a number of variations, but perhaps not this one? This is along the line of what I was thinking as well. I'll see how it works. Thanks. MUCH more helpful.

I'll have to try it again. I went through a number of variations, but perhaps not this one? This is along the line of what I was thinking as well. I'll see how it works. Thanks. MUCH more helpful.
lawson
31 Posts
lawson posted this 28 October 2021

By the way, it worked! I may have missed the closing character to the line. I know I tried a number of variations. I'm not sure if in the app itself if one could list and email address then comma, then enter another address until done, but your solution worked. Thank you for your help. Lawson

By the way, it worked! I may have missed the closing character to the line. I know I tried a number of variations. I'm not sure if in the app itself if one could list and email address then comma, then enter another address until done, but your solution worked. Thank you for your help. Lawson
Support Team
Support Team posted this 29 October 2021

Hi Lawson,

We're glad to hear that it worked!

Feel free to contact us in case you need any assistance.
...................................................
Sincerely,
Lilioneta
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hi Lawson, We're glad to hear that it worked! Feel free to contact us in case you need any assistance. ................................................... Sincerely, Lilioneta Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
You must log in or register to leave comments