nunopress / kirby-themes-phantom

Other
3 stars 1 forks source link

Contact form not working? #4

Open ghost opened 7 years ago

ghost commented 7 years ago

Hey there,

Thanks again for putting up such a great theme.

Yet the contact form in the footer does not seem to work. Emails won't get sent. And there's a usability thing that you don't get a message/info that your email was properly sent. This might leave the user wondering if the email got sent.

I put the website online because I thought that the contact form wouldn't work in offline use, but it's also broken in a live environment. (see here: http://jagaland.de/Phantom/)

Keep up the good work, Jagaland

nunocodex commented 7 years ago

Hello, sorry for delay but in this days Im really busy with other business projects.

I don't know why not sending email, because I used the Toolkit to send email: https://github.com/nunopress/kirby-themes-phantom/blob/master/site/controllers/home.php

If you want use another service (example for my website I use mailgun and the toolkit version is broken/outdated so I use directly the MailGun library) you need to change in this file your sending email.

The probably problem come if you not have mail function working fine into your server or you not configured the site.email inside the site.txt or in the panel: https://github.com/nunopress/kirby-themes-phantom/blob/master/content/site.txt#L63

After testing your live site I see the form sended to your server: https://puu.sh/rRYKD/369910ac35.png but no one message exit so I think the problem come from miss configured email, give me more info about it. Example from the logs.

For the usability is true need to rework the email form, normally all emails are sended for this I think in the past is useless to add the possible to see error message.

Give me more informations and Ill try to help you.

nunocodex commented 7 years ago

If you want to try this pre-release: https://github.com/nunopress/kirby-themes-phantom/releases/tag/v1.1.1

For me all working fine in local server with and without email, you see a default success message inside the home controller and if email() get error print if in the frontend.

Give me more info about the problem. Thanks.