themefisher / meghna-hugo

Meghna Hugo is a responsive, minimalist, lightweight, and fast loading one-page business theme built with HTML5/CSS3, Hugo, JavaScript, and JQuery.
https://gethugothemes.com/products/meghna/?utm_source=meghna_github&utm_medium=referral&utm_campaign=github_theme_about
MIT License
441 stars 1.23k forks source link

Contact Form Behavior Changed #32

Closed Proziam closed 5 years ago

Proziam commented 5 years ago

The behavior of the contact form seems to have changed in recent versions of the theme, not sure how to fix it.

Expected behavior - Submit button says "Mailman is on his way" or similar when a filled out form is input

Actual behavior - new tab opens with "sent" message + the form will send an email regardless of whether the form is filled out or not

I had this working properly with a sendmail.php file before, but I see the new versions have several PHP files and am unsure how it is meant to be set up.

Can see the behaviors in action - https://www.yokotu.com [using formspree now as a stopgap measure]

pzhaonet commented 5 years ago

Hi, @Proziam. I am a new user of this nice theme. I have built a preliminary site with meghna theme, but I do not know how to configure my contact email. In my experience, the contact email can often be configured in config.toml in other Hugo themes, while I cannot find it in meghna-hugo. Could you kindly let me know how to do it? Thanks a lot!

hawkeye116477 commented 5 years ago

@pzhaonet You can set it on data/contact.yml (https://github.com/themefisher/meghna-hugo/blob/master/exampleSite/data/contact.yml#L20).

pzhaonet commented 5 years ago

@hawkeye116477 Got it. Thanks a lot!

baianomauricio commented 5 years ago

@pzhaonet - Does the contact form works for you now?

pzhaonet commented 5 years ago

@baianomauricio No, it did not work. Maybe I did something wrong. I had no time to do further tests and gave up.

ClockWise89 commented 5 years ago

All I get is that the sendmail.php does not exist when I submit :/

alvarolorentedev commented 5 years ago

+1 I am having the same issue :( . 404 on the form submition. Has anyone found a solution for this?

alvarolorentedev commented 5 years ago

So i found out this will never work specially with github pages. So I have done a small PR to add support for formspree

Oxko commented 3 years ago

Hi, Could you help how to add an attachment upload option in the contact form?

somratpro commented 3 years ago

Hey @Oxko

Follow the file uploads instruction from here https://formsubmit.co/documentation

Oxko commented 3 years ago

Thank you. Could you please also help how to change the name of the tabs? (about, team and these tabs..)