I’m upgrading from EE 2.4.0 to EE 2.7.1 - the upgrade has gone very well, but I’ve run into a problem with my email contact form.
The form seems to be functioning, but it won’t actually send the email. I’m using a custom form that I’m using Codeigniter methods directly.
I read about the {XID_HASH} being added to a hidden input. That worked for one of my other forms on the site (not an email form), but it hasn’t worked on my email contact form.
I’ve tried setting the fields for email configuration and tried different protocols, PHP Mail and Sendmail, don’t have smtp set up on the server. I don’t think it’s the server config, because EE 2.4.0 was working just fine.
I’ve also tried using the EE Communicate form to send an email through EE’s admin console and that email did not go through.
I then tried going to another website altogether, on the same staging server though, and tried sending an email through a form that also uses Codeigniter. The email went through no problem. I was using the Codeigniter email library with $this->email->send(); doing the send portion. In EE I’m using $this->EE->email->send();
Has this changed?
Here’s how I’m using the XID hash in the hidden field. Like I said, this worked for non-email form, but on my contact form it’s not.
<input type=“hidden” id=“XID” name=“XID” value=”{XID_HASH}”>
Do I need to do something in my email contact form validation with the XID id? Am I not processing that correctly? Is that even needed?
Thankfully this is only on a staging server to test the upgrade, but so far I haven’t had any luck fixing it.
Thanks in advance for any suggestions.