Could not send e-mail - Contact Form Error on Website

Hi!

I’ve added a template form to my website with a few edits, I’ve had one before and it worked fine.

This one however just gets me the error message “Could not send e-mail”. In the form settings I’ve tried both leaving the reciever field blank as the website data has the e-mail, and also typing it manually in the reciever field, but nothing works.

Not sure what’s wrong, happy for any help :cherry_blossom:

Moved it over to the Website Builder section as this is not a bug.

Hey Therese, did you try our article about the most common issues with the contact form already?

https://help.sitejet.io/hc/en-us/articles/32201735492503-Most-common-questions-about-the-contact-form

1 Like

After a bit of trial and error I think I got it to work, thank you! :blush:

Actually nope, scratch my latest message :see_no_evil_monkey: Not working again.

All I changed was adding extra input’s for it to stop working.

Edit: Rescratch that, now it’s suddenly working :sweat_smile:

Okay, and what was it then? :slight_smile:

I have absolutely no idea lol :wink:

And it’s back to not working.. I have changed absolutely nothing on this page, only on another page and republished the site. Since this is the form for bookings it’s quite problematic :confused:

I need the website ID :slight_smile:

Is this the one? :slightly_smiling_face:

Edit: Don’t think it was so I added all I could find hehe

542420

That is the one.

So the Domain probably needs a proper SPF-Record so that we can sent the forms through that mail address: https://help.sitejet.io/hc/en-us/articles/32201735492503-Most-common-questions-about-the-contact-form#h_01JVM3BHBNN0JW47S2ZV6D1HGC

1 Like

So I go to my domain’s DNS settings and add v=spf1 a:mx1.sitehub.io a:mx2.sitehub.io mx -all as a txt post? Would that be correct? Or an mx post?:slightly_smiling_face:

I did find this “v=spf1 +mx +include:relay.mailchannels.net ~all” txt in my DNS posts, does that not basically say the same thing? :sweat_smile:

I do find it a bit odd that the booking form I previously had (also a preset, just a different style), worked fine for over a year without me needing to do anything additional.

Hey Therese,

I honestly do not know what changed here.

Maybe something with the server? A lot changed in the past months regarding security… Please also contact your provider support to check about your mail feature. Just in case :slight_smile: And keep me updated.

The old SPF Record seems to be for your mail settings. You might want to keep them :smiley: You just need to add the values that the servers “know” and “allow” that we can send you a mail with the form entries.

Important: Use only one ! SPF record and combine these.

So, the current SPF should be

v=spf1 mx a:mx1.sitehub.io a:mx2.sitehub.io include:relay.mailchannels.net ~all

Why like this?

mx: Authorizes the IPs of your domain’s MX servers (classic if your mail is sent via the same hosts that receive it).

a:mx1.sitehub.io and a:mx2.sitehub.io: Explicitly authorize us. Useful if they’re allowed to send mail, regardless of whether they’re listed as MX for your domain.

include:relay.mailchannels.net: Authorizes the MailChannels relay servers.

~all vs. -all: Start with SoftFail (~all) so unauthorized senders are flagged but not outright rejected. Later, when you’re sure everything is correct, switch to HardFail (-all) to block them.

btw: I love your website! Its really fun!

1 Like

This seems to have done the trick, hope it stays that way lol :sweat_smile: Thank you Andre for all your help and for the compliment! :cherry_blossom:

1 Like

Yay! Always here to help :slight_smile: