Auto responder & auto message for the company

5 replies · opened Mar 14, 2022

NnperroMar 14, 2022

Hello,

I use the barber template and have some text corruption troubles with the form.
If you need to see our web site, I will send you an ID and Password. It's a demo site, not published yet.

I have character corruptions in the "from" and "subject" field in the auto responder message.
Also in the undelivered mail, all the text in the mail body is corrupted.

My language is Japanese.
I have added the lines below to the form.php but it doesn't help.

mb_language( 'ja' );
mb_internal_encoding( 'UTF-8' );
date_default_timezone_set( 'Asia/Tokyo' );

I also have some questions about the auto message to the company.

  1. I'd like to add some Japanese to the subject.
    2.I'd like to change English to Japanese(Name, Email, Phone, Message)
  2. I'd like to add the sujet to the mail body.

If you need more informations, please let me know.

Thank you in advance.
Noriko

SSemicolon WebSTAFFMar 15, 2022

Hello,

Apologies for the Inconveniences caused!

  1. We have checked out the Codes for the Form and it appears that the Encoding is not activated for the Auto-Responders by default. Please find the following code in the include/form.php File:
    [ch_pre type="php"]$autoresponder = new PHPMailer();[/ch_pre]

and add the following of code just after the above line:
[ch_pre type="php"]$autoresponder->CharSet = "UTF-8";[/ch_pre]

This will fix the issue with the AutoResponder Subject and Email.

  1. To change the Language of the Field Names, you will need to Translate this in the Form's HTML Code itself. Simply find the following code in your Form's HTML Codes: name="template-contactform-name" and replace the name with your Translated Text for Japanese. Example: name="template-contactform-nameinjapanese" .

This will display as Nameinjapanese in the Form Response Email.

  1. We recommend adding a Hidden Input Field inside with the name="template-contactform-subject" and add your Subject manually. This will appear in the Form. Example:
    [ch_pre][/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.

NnperroMar 16, 2022

Thanks a lot for your reply.

Encoding worked well.

On the other hand,
I changed 'name="template-contactform-name"' to 'name="template-contactform-nameinjapanese"'
and it worked for the auto message to the company.

But in the auto responder message, I can't get "name", "phone" and "message".
("email"and "subject" are showed because I didn't change name="template-contactform-email" and name="subject")

Please see attached 2 images.

Thanks again in advance.

Noriko

SSemicolon WebSTAFFMar 17, 2022

Hello,

This should work fine if the the Input name Attributes matched correctly with the Auto Responder Settings. Can you please provide us with a Live URL so that we can check out the exact issue and provide you with more accurate assistance on this. Thanks for your Patience.

Meanwhile, do let us know if we can help you with anything else or if you find any further issues with Canvas.

NnperroMar 17, 2022

Hi,
it's solved.

It was me who forgot to change the setting in form.php.
Sorry.

Thanks a lot for your advice.

Regards,
Noriko

SSemicolon WebSTAFFMar 19, 2022

Hello,

Glad your issues were resolved!

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

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