How to get emails from Contact Form via Mailgun instead of Formspree?

Hey all!

Can we use Mailgun instead of Formspree to send emails from Contact Form to Ghost’s Admin email?

What script will be needed to change Action in

<form action="https://formspree.io/f/xxx" method="POST" id="contactForm">

I would be grateful for any help!

Does Mailgun support contact forms??

Mailgun allows to send a letter from email-1 (admin) to email-2 (user) via smtp.

Contact_Form does almost the same, doesnt it? Takes the message from the form (with email-2) and sends it to email-1 (admin).

Formspree is not an SMTP server. It’s a server-side service that gets form data, and send an email with that data to someone, maybe by using Mailgun behind the scenes.

Basically you need to replace that service, to send emails with contact form with your Mailgun account. If you ask if Ghost has something like that, the answer is no.

The challenge about contact form is not the sending email. It’s everything before that step. How to accept a form, how to avoid spam, how to rate limit mails to avoid intentional or unintentional multiple mail sendings, etc. These are the issues that Formspree (or similar services) solves.

2 Likes

Murat Çorlu, thanks a lot!

Can you suggest other services that are free or cheaper than Formspree?

Or, another way, sending letters from Contact Form via PHPMail() or smth like that.

The only reasonable alternative that I know is Tally: https://tally.so

EDIT: Another one that I learned from one of my Synaps Media publishers: https://letterbird.co/

1 Like

Yes, I’m testing with Ghost both services right now. Thank you!