I have a newsletter widget where people submit their emails and want to know how to see the emails they submit.
1 Like
Happy to see you in our Community @Legoyeti6376! Welcome
Sure! To see the submitted emails, you should follow these steps:
Choose Notify Me
Check it out and let me know if it helped
1 Like
For this issue I would recommend using a standard php script that when the form is submitted it sends the submission to your email.
<?php if ($_SERVER["REQUEST_METHOD"] == "POST") { // Replace these variables with your own $to_email = "recipient@example.com"; $subject = "Form Submission"; // Fetch form data $name = $_POST["name"]; $email = $_POST["email"]; $message = $_POST["message"]; // Compose email content $email_body = "Name: $name\n"; $email_body .= "Email: $email\n\n"; $email_body .= "Message:\n$message"; // Email headers $headers = "From: $email"; // Send email if (mail($to_email, $subject, $email_body, $headers)) { echo "Email sent successfully!"; } else { echo "Email sending failed!"; } } ?>Take this + the script that the embed is already to GitHub.
Make a file and put the embed code into a file you make index.html.
Make another file and put the script I put up there and name it
Form_submission.php
And paste the code.
Make it a GitHub pages and embed the link into your site.
If you still have problems you can message me back or DM me.