21 comments found

  • Bought between 1 and 9 items
  • Has been a member for 1-2 years
Nasario2 Purchased

Hello I have a problem with code in messages, that come to my email from the site, I need that all of them will be in utf-8 encoding. What i need to change?

egemenerd

Hi,

Open processForm.php file, find the following line;

$senderName = isset( $_POST['senderName'] ) ? preg_replace( "/[^\.\-\' a-zA-Z0-9]/", "", $_POST['senderName'] ) : "";

and change it with the following;

$senderName = isset( $_POST['senderName'] ) ? $_POST['senderName'] : "";

Then find the following line

$headers = "From: " . $senderName . " <" . $senderEmail . ">";

and change it with the following;

$headers = "From: " . $senderName . " <" . $senderEmail . ">". "\r\n" . "Content-type: text/html; charset=UTF-8;";

If it still doesn’t work, there may be a problem on your server settings. Please contact your hosting provider.

As an alternative solution you can use an online form builder to create forms like jotform.com

by
by
by
by
by
by