Page 1 of 1

Contact form not working

Posted: Tue Aug 24, 2021 10:09 am
by joticakr
Hello,

I use the standard contact form but it is not working. If I enter name, mail address and text, I get the reply that the mail was not possible to send. A correct mail address is in the site configuration.

Is there any way to narrow the issue down?

Best regards,
Johannes

Re: Contact form not working

Posted: Tue Aug 24, 2021 3:43 pm
by George
Does your server send emails ordinarily?

Re: Contact form not working

Posted: Tue Aug 24, 2021 4:36 pm
by joticakr
I can send mails over msmtp, if it's what you want to know.

Re: Contact form not working

Posted: Wed Aug 25, 2021 6:32 am
by joticakr
Hello,

I got it working by changing the ownership of /etc/msmtprc to www-data:www-data.
But now root is not able to send mails. Any idea how to solve this?

BR, Johannes

Re: Contact form not working

Posted: Wed Aug 25, 2021 11:13 am
by joticakr
Hello,

it seems that flatpress uses my msmtp installation (root sending mails for finished tasks) for the contact form. I thougt that php has an included mail function which is used for this. Is that right?

BR, Johannes

Re: Contact form not working

Posted: Wed Aug 25, 2021 11:51 am
by joticakr
Okay, one step further.

I installed sendmail and now the contact page gives me the green label that the massege was successfully sent. But I doesn't receive any massage.

Regards,
Johannes

Re: Contact form not working

Posted: Wed Aug 25, 2021 1:14 pm
by joticakr
Hier meine Lösung:

mittels setfalc www-data die nötigen Rechte für /etc/msmtp gegeben.

Gruß, Johannes

Re: Contact form not working

Posted: Sun Aug 29, 2021 10:37 am
by Arvid
Johannes, glad it works now!