fromemail

3 replies · opened Apr 14, 2022

KkostasApr 14, 2022

Hi Canvas

I hope you are great. I am looking for solution on these :

a) I want to change the fromemail to the Sender's Email address and not to default no-reply@mydomain.com
for example when receive the mail response at the field 'from' to see the no-reply but the mail who send me the message in order to do immediate reply

b) One more is that I am using date picker on this mail form and I would like to change the language at the mail I receive
for example I receive message that write From: MM/DD/YYYY To: MM/DD/YYYY changed to Check in & Checkout

Thank you in advance for your support

SSemicolon WebSTAFFApr 14, 2022

Hello,

  1. Changing the from Email to a Dynamic Email Address of the User filling the Form will result in SPAM on the Mail Clients and in some cases, even your Hosting Servers will block this.

Meanwhile, this can be fixed easily by simply adding a replyto address. You can simply add a replyto Field to your Form Settings so that when you press the Reply Button on the Emails you have received through your Forms, automatically adds the Sender's Email to the Reply Address box.

To enable this, simply add the following code inside your <form>:
[ch_pre]<input type="hidden" name="replyto" value="form-availability-email">[/ch_pre]

The form-availability-email above is the Form Field name of the Email Address value submitted by the User.

  1. Simply replace name="form-availability-from" to name="form-availability-check-in" and name="form-availability-to" to name="form-availability-check-out".

This will definitely work fine. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

KkostasApr 14, 2022

Thank you !!! for your response
One more question is, how could I add the name of the sender into the subject
like : Form Response from Kostas ('name field')

SSemicolon WebSTAFFApr 16, 2022

Hello,

Thanks for your Patience!

This will require you to edit the Core Files. Find the following code in the include/form.php File:
[ch_pre type="php"]$mail->Subject = !empty( $submits['subject'] ) ? $submits['subject'] : 'Form Response from your Website';[/ch_pre]

and replace it with:
[ch_pre type="php"]$mail->Subject = !empty( $submits['subject'] ) ? $submits['subject'] : 'Form Response from ' . $_POST['form-availability-name'];[/ch_pre]

This will definitely work fine. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard