The emails aren't connected to a database, they're just sent directly from the webpage. On the web page where the form is, the encoding is:
<meta charset="utf-8">
There's a php include on the page for the server behavior which is:
<?php
$pageName = $_SERVER['REQUEST_URI'];
if (isset($_POST["submit"]) || isset($_POST["submit_x"])) { //WA Universal Email
$Email = new WA_Email("message2");
$Email->Redirect = "$pageName?sent=true#success";
$Email->From = "Glasgow Psychology <info@Glasgowpsychology.co.uk>";
$Email->ReplyTo = "info@Glasgowpsychology.co.uk";
$Email->ReturnPath = "info@Glasgowpsychology.co.uk";
$Email->addTo("webqueries@Glasgowpsychology.co.uk");
$Email->addTo("webforms@firstpsychology.co.uk");
$Email->BodyFile = "webassist/email/contact-form.php";
if (function_exists("rel2abs") && $Email->Redirect) $Email->Redirect = $Email->Redirect?rel2abs($Email->Redirect,dirname(__FILE__)):"";
for ($emailGroup=0; $emailGroup<sizeof($Email->To); $emailGroup++) {
$Email->Subject = "".((isset($_POST["subject"]))?$_POST["subject"]:"") ."";
$Email->send($emailGroup);
}
$Email->close();
}
?>
Then the page with the email content:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
<style>
body {
font-family:Arial, sans-serif;
font-size:12px;
}
</style>
</head>
<body>
<p> Name: <?php echo((isset($_POST["name"]))?$_POST["name"]:"") ?><br>
Email: <?php echo((isset($_POST["email"]))?$_POST["email"]:"") ?><br>
Phone: <?php echo((isset($_POST["phone"]))?$_POST["phone"]:"") ?><br>
Subject: <?php echo((isset($_POST["subject"]))?$_POST["subject"]:"") ?><br>
Message: <?php echo htmlspecialchars((isset($_POST["message"]))?$_POST["message"]:"") ?><br>
Referring page: <?php echo((isset($_SERVER["HTTP_REFERER"]))?$_SERVER["HTTP_REFERER"]:"") ?><br>
User IP address: <?php echo ((isset($_SERVER["REMOTE_ADDR"]))?$_SERVER["REMOTE_ADDR"]:"")?></p>
</body>
</html>