<commit_before><?php

if(get('contact', false)) {
	$contact = get('contact');
	if(isset($contact['footer'])) {
		$name = $contact['footer']['name'] || null;
		$email_address = $contact['footer']['email'] || null;
		$message = $contact['footer']['message'] || null;

		//TODO fix zoho.
		$mail = new Email([
			'to' => c::get('email.recipient'),
			'body' => $message,
			'from' => $email_address,
			'service' => 'mail',
			'subject' => 'Footer webform has been filled in',
			'body'    => $message . 'from' . $name
		]);
	}
}

?>

<footer class="footer">
			<div class="col xs-12 m-4"><commit_msg>fix: actually send the email<commit_after><?php

if(get('contact', false)) {
	$contact = get('contact');
	if(isset($contact['footer'])) {
		$name = $contact['footer']['name'] || null;
		$email_address = $contact['footer']['email'] || null;
		$message = $contact['footer']['message'] || null;

		//TODO fix zoho.
		$mail = new Email([
			'to' => c::get('email.recipient'),
			'body' => $message,
			'from' => $email_address,
			'service' => 'mail',
			'subject' => 'Footer webform has been filled in',
			'body'    => $message . 'from' . $name
		]);

		$mail->send();
	}
}

?>

<footer class="footer">
			<div class="col xs-12 m-4">
{'fraction_non_alphanumeric': 0.24328722538649308, 'fraction_numerical': 0.004882017900732303, 'mean_word_length': 4.0, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 22, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2986865', 'n_tokens_mistral': 490, 'n_tokens_neox': 441, 'n_words': 96}