From d27b2035bba05417eb564e0497e5132a6cd30e88 Mon Sep 17 00:00:00 2001 From: galenskap <jean.deborah@gmail.com> Date: Mon, 3 Feb 2025 11:23:56 +0100 Subject: [PATCH] Update readme about the PHP file in the project --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 1d67c71..5a6c2be 100644 --- a/README.md +++ b/README.md @@ -131,3 +131,17 @@ Fill in the meta information : ### FAQ section Edit `_data/faq.json` file to add a new Q/A couple object. Plain html e.g. `<br>` or `<a href="">link</a>` is supported + +### Contact form + +Edit `partials/components/contact-form.html` file to modify the contact form and `src/form/contact-form-handler.php` to modify the form handler. + +To test it in a local environment, because there is PHP to execute, you will need to setup a apache vhost with the `dist` folder as the root and the phpmailer library installed. +Add these lines to the vhost configuration file (here with mailtrap as smtp provider for testing purposes): + +``` +SetEnv ASTRO_SMTP_FROM test@astrolabe.test +SetEnv ASTRO_SMTP_HOSTNAME sandbox.smtp.mailtrap.io +SetEnv ASTRO_SMTP_USERNAME xxxxx +SetEnv ASTRO_SMTP_PASSWORD xxxxx +```