Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Contact form not working #87

Closed
kamlekar opened this issue Mar 29, 2016 · 3 comments
Closed

Contact form not working #87

kamlekar opened this issue Mar 29, 2016 · 3 comments

Comments

@kamlekar
Copy link

Can someone please tell me where I need to change so that the contact form will work?

http://i.imgur.com/71XnrPd.png?1

I added my email address in mail/contact_me.php what else should I need to do?

$to = 'mymailid@gmail.com'; // Add your email address inbetween the '' replacing yourname@yourdomain.com - This is where the form will send a message to.
$email_subject = "Website Contact Form:  $name";
$email_body = "You have received a new message from your website contact form.\n\n"."Here are the details:\n\nName: $name\n\nEmail: $email_address\n\nPhone: $phone\n\nMessage:\n$message";
$headers = "From: mymailid@gmail.com\n"; // This is the email address the generated message will be from. We recommend using something like noreply@yourdomain.com.
$headers .= "Reply-To: $email_address";
mail($to,$email_subject,$email_body,$headers);
return true;
?>
@ShikherVerma
Copy link

Github doesn't support php. You can try including a form using 3rd party plugins.

@kamlekar
Copy link
Author

That is what I thought but was confused because this theme was using it. Thanks.

@ShikherVerma
Copy link

Try this

glarizza referenced this issue in openinfrastructure/openinfrastructure.github.io Mar 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants