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

Fix issue #29: I have made the email functionality work in the contact form. #33

Merged
merged 1 commit into from
Oct 5, 2024

Conversation

BlitzIQ-Coder
Copy link
Contributor

Description

I have added a new file called contact.php and updated index.html. Currently the mail is set to be written from [email protected] to [email protected] . You can change it by reading below.

Notice

Please note in contact.php file under line 24 and 25, those creds are my email's creds. If you want yours to be added then add your creds (i.e ur email and app password , not email password).

Screenshot 2024-10-05 123011

Also make sure the path of Exception.php, SMTP.php and PHPMailer.php is proper in line 3, 4 and 5. Suppose if you create another folder in htdocs of Xampp folder.

Screenshot 2024-10-05 125438

I have set the mail to be sent in very simple form, you can edit it as you want.

Screenshot 2024-10-05 123021

Also last, once when the user sends the contact form, the URL gets updated as index.html?success=true

This is how the mail will look like:
Screenshot 2024-10-05 125853

…e contact form. I have added a new file called contact.php and updated index.html. Please note in contact.php file under line 24 and 25, those creds are my email's creds. If you want yours to be added then add ur creds (i.e ur email and app password , not email password). Also make sure the path of Exception.php, SMTP.php and PHPMailer.php is proper in line 3, 4 and 5. Thank you
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀 Thank you for contributing to this project, your support is much appreciated.

Stay awesome! 😎

@Vimall03 Vimall03 merged commit b1d96d0 into Vimall03:main Oct 5, 2024
1 check passed
@Vimall03
Copy link
Owner

Vimall03 commented Oct 5, 2024

This looks good, @BlitzIQ-Coder. I've assigned a level 2 label to this. Thank you for contributing! If you'd like to make more backend fixes to the site, feel free to open new issues.

Closes #29

@BlitzIQ-Coder
Copy link
Contributor Author

Also i forgot about another thing:
Suppose if it still fails to work, you will have to download cacert.pem from this link.
Then copy paste the cacert.pem to xampp > apache > bin

@Vimall03
Copy link
Owner

Vimall03 commented Oct 5, 2024

Cool, Thanks for heads up 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants