Page 1 of 1

Contact Form Not Emailing

Posted: Sun Jan 22, 2023 11:36 pm
by tlchost
New Installation of Flatpress....contact form does not email.
Any suggestions

Re: Contact Form Not Emailing

Posted: Mon Jan 23, 2023 1:09 am
by fraenkiman
Hello tlchost,

without taking a shot in the dark, I recommend this Wiki article.

With best regards
Frank

Re: Contact Form Not Emailing

Posted: Sun Mar 05, 2023 12:35 pm
by Arvid
Hi,

does your blog title contain non-ASCII characters such as German umlauts? Because in this case, the email isn't sent properly.
We just added a fix, it will be part of FlatPress 1.3.

All the best,
Arvid

Re: Contact Form Not Emailing

Posted: Wed May 20, 2026 3:37 pm
by WineMan
I am not getting the emails through the contact form. Using the wiki article, I was able to receive the test email after providing the relevant details so It is working. I suspect that my "from" email is the problem but I can't find the file that contains that information in the flatpress application. Can someone point me to where I would have added the from email address. Here is the file I a talking about from the wiki article.

Code: Select all

<?php
ini_set('display_errors', 1);
error_reporting(E_ALL);
 
$recipient = "your-mail-server@domain.ltd";
$subject = "Subject with non-ASCII characters: ÖöÄäÜüó¿¡á";
$text = "The e-mail was sent successfully";
 
// Subject (RFC 2047, Base64-encoded for UTF-8)
$encoded_subject = '=?utf-8?B?' . base64_encode($subject) . '?=';
 
// Header
$headers  = "Date: " . date('r') . "\r\n";
$headers .= "From: Sender <your-mail-server@domain.ltd>\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/plain; charset=\"UTF-8\"\r\n";
 
if (mail($recipient, $encoded_subject, $text, $headers)) {
	echo "Test email sent\n";
} else {
	echo "Error sending email\n";
}
?>

Re: Contact Form Not Emailing

Posted: Thu May 21, 2026 3:54 am
by WineMan
Disregard this post...I figured out what the problem was.