Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to prevent Contact Form 7 from sending emails

I am using contact form 7 to generate forms and handle form submit.

I am also using Hubspot integration to capture form submission data and therefore, do not require any email to be sent from Contact Form 7.

Is there any way to disable the email attempting to be sent?

like image 1000
Stretch0 Avatar asked Feb 09 '18 10:02

Stretch0


Video Answer


2 Answers

If you visit the contact form 7 website: https://contactform7.com/additional-settings/, you can see there is a call you can do in order to stop emails from being sent:

You can include additional settings to each contact form by adding code snippets in the specific format into the Additional Settings field in the contact form’s edit screen.

skip_mail: on

The skip_mail setting works in the almost same manner as the demo_mode, but the skip_mail skips the mail sending only. Unlike demo_mode, skip_mail doesn’t affect other activities like storing messages with Flamingo.

Hope this helps.

like image 157
M. Ferguson Avatar answered Sep 23 '22 00:09

M. Ferguson


demo_mode: on

If you set demo_mode: on in the Additional Settings field, the contact form will be in the demo mode. In this mode, the contact form will skip the process of sending mail and just display “completed successfully” as a response message.

like image 28
Hritik Pandey Avatar answered Sep 20 '22 00:09

Hritik Pandey