I am running EE 3.5.16 and have the following form:
{exp:email:contact_form
user_recipients="no"
recipients="[email protected]"
replyto="yes"
return="https://mysite.us/"
charset="utf-8"}
<!-- <input type="hidden" name="from" value="" />
<input type="hidden" name="subject" value="Email Contact" /> -->
<label for="from">Your Email:
<input {if logged_in}type="hidden" value="{member_email}"{/if} {if logged_out} type="text" value=""{/if} id="from" name="from" /></label>
<label for="subject">Subject:
<input type="text" id="subject" name="subject" size="40" value="" /></label>
<label for="message">Comments:
<textarea id="message" name="message" rows="18" cols="40"></textarea></label>
<div class="clearer"></div>
{exp:honee class="beez"}
<input class="submit" name="submit" type='submit' value='Submit' />
{/exp:email:contact_form}
I am having two issues with this form:
The padlock is missing from the browser because the action in the form is showing http instead of https. In addition to the return I’ve added, I checked the URL and Path settings for the site and it is https:, so I am not sure where the http is coming from.
The other issue is that the form does not send an email.
Any insights on either or both of these issues will be greatly appreciated.
You’d need to look at your config file and see if it has anything that’s not part of the native config. Since it’s MSM, you would also want to check the assign_to_config
section of this site’s index.php file. If you aren’t sure how to do either of those things, we could help in support directly (and privately).
A quick gut-check would be on this template, just above your form, add:
<h1>{site_url}</h1>
Which would confirm what your URL setting is for your site’s front end.
It looks like your form action has /index
for some reason. In addition to checking your site’s URL setting, make sure the Site’s Index Page is empty since you are removing index.php
from your URLs. When accessing the URL in your form action, Redirect Checker is showing that it does a 301 redirect, so it’s probably dropping POST.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.