Contact form not working

This is the right place to report general bugs, make suggestions or ask for help.
Post Reply
joticakr
Posts: 14
Joined: Sat Apr 17, 2021 4:58 pm

Contact form not working

Post by joticakr » Tue Aug 24, 2021 10:09 am

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

George
Posts: 10
Joined: Tue May 18, 2021 10:54 am
Location: Uk
Contact:

Re: Contact form not working

Post by George » Tue Aug 24, 2021 3:43 pm

Does your server send emails ordinarily?

joticakr
Posts: 14
Joined: Sat Apr 17, 2021 4:58 pm

Re: Contact form not working

Post by joticakr » Tue Aug 24, 2021 4:36 pm

I can send mails over msmtp, if it's what you want to know.

joticakr
Posts: 14
Joined: Sat Apr 17, 2021 4:58 pm

Re: Contact form not working

Post by joticakr » Wed Aug 25, 2021 6:32 am

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

joticakr
Posts: 14
Joined: Sat Apr 17, 2021 4:58 pm

Re: Contact form not working

Post by joticakr » Wed Aug 25, 2021 11:13 am

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

joticakr
Posts: 14
Joined: Sat Apr 17, 2021 4:58 pm

Re: Contact form not working

Post by joticakr » Wed Aug 25, 2021 11:51 am

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

joticakr
Posts: 14
Joined: Sat Apr 17, 2021 4:58 pm

Re: Contact form not working

Post by joticakr » Wed Aug 25, 2021 1:14 pm

Hier meine Lösung:

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

Gruß, Johannes

User avatar
Arvid
FlatPress Coder
Posts: 250
Joined: Sat Jan 26, 2019 7:40 pm
Contact:

Re: Contact form not working

Post by Arvid » Sun Aug 29, 2021 10:37 am

Johannes, glad it works now!

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests