I've used the contact form plugin many times with no issues. However I have a site set up on a Linode server and for some reason the from address that I have added in the contact form settings e.g. contactus@mydomain.com is being changed to contactus@localhost.localdomain when the email comes through.

Anyone any ideas what is causing this. I'm thinking it's a server setting but wanted to check the plugin wasn't causing anything weird to happen as well.


  • I assume you're referring to the "To Email" in the Contact Form settings and not the "From Email", which is the one the end users inputs in the form? If you look in the craft_plugins table in the database for that site, then find the row with the ContactForm class name, then find the settings column, what is "toEmail" set to there?
    – Brad Bell
    Jul 11 '17 at 23:59
  • @bradbell it is set to the correct email with the domain name.
    – Lettie
    Jul 12 '17 at 7:01
  • Do you have any other plugins installed that might be listening to Contact Form's events and interfering?
    – Brad Bell
    Jul 12 '17 at 18:46
  • @bradbell no just 2 simple ones sendfile and lj_cookies neither are listening.
    – Lettie
    Jul 13 '17 at 7:35
  • @bradbell on further investigation it only seems to want to send to my personal address. Could this be a serverside issue?
    – Lettie
    Jul 13 '17 at 8:12

Generally I've been dissatisfied with the craft cms contact form plugin. Fortunately, this doesn't need to be handled with the CMS. I've been using third party tools such as Formbucket to handle form submissions for several reasons.

  1. Reliability is extremely important. Most clients will not tolerate any mistakes regarding lead generation in contact forms.

  2. Feature rich. Craft's contact form plugin is very barebones and ugly. With formbucket and other form submission collection tools, you can add as many fields as you want instead of segmenting message. There is also honeypot and recaptcha fields to keep out spam.

I know this is probably not the answer you were looking for, and I wish you the best with getting it to work, just wanted to let you know how i've been doing it.

PS: I don't work for Formbucket.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.