email received from Form

2 replies · opened Feb 14, 2023

Ddreamer77frFeb 14, 2023

Hello,

I receive a text by email via a contact formular with bad words: exemple "Lagão" on contact form, I received "lagão".
Also, on textarea, if the customer write several lines (if he go to line), I also would like to receive several lines (not all in one line).
Here is my files.
Many thanks in advance if you can help.

Ddreamer77frFeb 14, 2023

main issue solved by adding on form.php:

$mail->MsgHTML(nl2br($body));
$mail->CharSet = "UTF-8";
$sendEmail = $mail->Send();

Just on email received now with a lot of spaces (see screenshot)

SSemicolon WebSTAFFFeb 16, 2023

Hello,

Apologies for the inconveniences caused!

We are not sure what is causing this as this does not happen on the Latest Versions of Canvas. Consider using this:
[ch_pre type="php"]$mail->MsgHTML(trim($body));[/ch_pre]

Additionally, we recommend updating to the Latest Version of Canvas as we currently do not provide support for Older Versions.

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