I've spent huge amount of hours on Google and can't find the solution.

I am using Wordpress and I want to find some plugin or any other solution which can do the following: When user sends contact form on my website I receive it on my Gmail but sender email is default Wordpress email. I would like if the sender email could be the email address they input in contact form.

So, if johndoe@mail.com sends me an contact form, it would be awesome if I would receive an email from johndoe@mail.com, and not from mywebsite@mail.com.

I hope this can be done in one way or another.

  • this concerns the plugin Contact Form 7 then contact the support of this plugin
    – mmm
    May 7, 2017 at 11:49
  • 1
    It can be impossible in some server configurations to send emails as someone from an external domain, maybe you should rather try the reply-to header.
    – Picard
    May 7, 2017 at 13:09

1 Answer 1


Sending an email from an address you don't own will mean you run into problems with countermeasures again email spoofing (e.g SPF), as you're effectively impersonating the user's email address to send your email.

You could put the user email address as the name, but send the email from an address you own

For contact form 7 an example would be to put in the "from" field:

[email] <wordpress@yourdomain.com>

Or if you also want their name to show you could do something like:

[name] ([email]) <wordpress@yourdomain.ccom

The emails will still come from wordpress@yourdomain.com but you'll have the information in the from field in your mail client or system, which may be enough depending on what you're trying to achieve.

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.