Skip to content

Replace the Formspree API with FormSubmit and update the receiver contact email.#4

Merged
cristian-tamblay merged 1 commit intomainfrom
contact-mail
Mar 20, 2026
Merged

Replace the Formspree API with FormSubmit and update the receiver contact email.#4
cristian-tamblay merged 1 commit intomainfrom
contact-mail

Conversation

@Irozuku
Copy link
Collaborator

@Irozuku Irozuku commented Mar 12, 2026

This pull request updates the contact form submission logic in the ContactSection component to use a simpler, direct form submission approach instead of handling form submission via JavaScript and the Formspree API.

Form submission logic changes:

  • Removed the handleSubmit function and all related JavaScript-based form submission logic, including error handling and status management. (components/contact-section.tsx, components/contact-section.tsxL14-L57)
  • Changed the form to submit directly to FormSubmit by updating the method to 'Post' and the action to the FormSubmit endpoint. (components/contact-section.tsx, components/contact-section.tsxL77-R33)
  • Added a hidden input field for _subject to preserve the subject line previously set in the payload, ensuring the subject includes the sender's name. (components/contact-section.tsx, components/contact-section.tsxR58-R59)

@cristian-tamblay cristian-tamblay merged commit a78be02 into main Mar 20, 2026
1 of 2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants