Senders repy address

shinpiizumi
1 Posts
shinpiizumi posted this 23 December 2021
Ask a Question

Why does the contact form not place the senders address as the reply address for example.

To: enquiries@mydomain
sending account : web@mydomain

Form fields :
Name: Jo Bloggs
email : jbloggs@somewhere
Message : Blah

Shouldn't the email address from the form field "email" be set as the reply address and not the sending account address?

Can this be fixed please or an advisory on how to manipulate the .php script?

I have been looking through the public help requests and his has been an ongoing issue for nearly 2 years and remains unresolved.

Kind regards,

Daniel

Why does the contact form not place the senders address as the reply address for example. To: enquiries@mydomain sending account : web@mydomain Form fields : Name: Jo Bloggs email : jbloggs@somewhere Message : Blah Shouldn't the email address from the form field "email" be set as the reply address and not the sending account address? Can this be fixed please or an advisory on how to manipulate the .php script? I have been looking through the public help requests and his has been an ongoing issue for nearly 2 years and remains unresolved. Kind regards, Daniel
Vote to pay developers attention to this features or issue.
7 Replies
Order By: Standard | Newest
Support Team
Support Team posted this 23 December 2021

Daniel,

The email From field uses "Email Address" The From field is used for "Reply-To" by default. That is why you receive the message with the email from the form settings, not the actual email filled in the contact form by the user.
One of the suggestions from the users on the forum is how to edit the script in case of Sending emails with PHP script:
" You do need to add an email field to the contact form, once created and exported to HTML, to reply direct from your email client, you will need to edit the scripts/form-****.php file and where it says:

$form = array(
'subject' => 'New Enquiry',
'email_message' => 'You have a new form submission',
'success_redirect' => '',
'email' => array(
'from' => ' ',

replace 'from' => ' ', with the following:

    'from' => $_POST["email"],

...................................................
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

Daniel, The email **From** field uses "Email Address" The From field is used for "Reply-To" by default. That is why you receive the message with the email from the form settings, not the actual email filled in the contact form by the user. One of the suggestions from the users on the forum is how to edit the script in case of *Sending emails with PHP script*: " You do need to add an email field to the contact form, once created and exported to HTML, to reply direct from your email client, you will need to edit the scripts/form-****.php file and where it says: $form = array( 'subject' => 'New Enquiry', 'email_message' => 'You have a new form submission', 'success_redirect' => '', 'email' => array( 'from' => ' ', replace 'from' => ' ', with the following: 'from' => $_POST["email"], ................................................... 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
mark.palmos
13 Posts
mark.palmos posted this 25 March 2024

Hello Anna

edit the scripts/form-****.php file
replace 'from' => ' ', with the following:
'from' => $_POST["email"],

I have published HTML to a local folder again and again, but there is NO "scripts" folder, and no form php file.
Why is that? I have tried using the Form (Alt-F) and also the form blocks... but none give me the scripts folder or a form php.
What to do? Thanks.

Hello Anna > edit the scripts/form-****.php file > replace 'from' => ' ', with the following: > 'from' => $_POST["email"], I have published HTML to a local folder again and again, but there is NO "scripts" folder, and no form php file. Why is that? I have tried using the Form (Alt-F) and also the form blocks... but none give me the scripts folder or a form php. What to do? Thanks.
Support Team
Support Team posted this 26 March 2024

Hello Mark Palmos,

The form php file is created after export to HTML of the site where Send email with PHP script submit option for the contact form is selected.
Do you have this submit type in your contact form?

...................................................
Sincerely,
Anna.
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 Mark Palmos, The form php file is created after export to HTML of the site where Send email with PHP script submit option for the contact form is selected. Do you have this submit type in your contact form? ................................................... Sincerely, Anna. Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
mark.palmos
13 Posts
mark.palmos posted this 26 March 2024

Hi Anna,
Thanks for the response.
I made a video here to show you from having a form on my site, exporting to HTML, there is no SCRIPTS folder and no PHP file...
See here https://youtu.be/WuPBASx3FIs
Thanks,
Mark.

Hi Anna, Thanks for the response. I made a video here to show you from having a form on my site, exporting to HTML, there is no SCRIPTS folder and no PHP file... See here https://youtu.be/WuPBASx3FIs Thanks, Mark.
Support Team
Support Team posted this 26 March 2024

Daniel,

Please check once again - https://nicepage.com/doc/62334/send-emails-with-php-script, https://nicepage.com/doc/25066/send-with-php-script-sample
You are using the Email submit option and no form PHP file can be created for it after export, see attached.
You are using public ticket to share your site settings, please note that we cannot make it private, you will not see further replies as you are not the ticket creator.

If you require any further assistance, create a new private ticket.
...................................................
Sincerely,
Anna.
Nicepage Support Team

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

Daniel, Please check once again - https://nicepage.com/doc/62334/send-emails-with-php-script, https://nicepage.com/doc/25066/send-with-php-script-sample You are using the Email submit option and no form PHP file can be created for it after export, see attached. You are using public ticket to share your site settings, please note that we cannot make it private, you will not see further replies as you are not the ticket creator. If you require any further assistance, create a new private ticket. ................................................... Sincerely, Anna. Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
mark.palmos
13 Posts
mark.palmos posted this 26 March 2024

Thanks Daniel, it's too difficult... would be MUCH better if reply to would work off the bat, using your premade forms, no php code to mess with!
tx

Thanks Daniel, it's too difficult... would be MUCH better if reply to would work off the bat, using your premade forms, no php code to mess with! tx
Support Team
Support Team posted this 26 March 2024

Daniel,

The email submit option has no additional folder with the script after you export your site to HTML.
If you need to use PHP script to send emails just change the submit option in your project file contact form settings.

...................................................
Sincerely,
Anna.
Nicepage Support Team

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

Daniel, The email submit option has no additional folder with the script after you export your site to HTML. If you need to use PHP script to send emails just change the submit option in your project file contact form settings. ................................................... Sincerely, Anna. 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