The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Configure SMTP
From email address (6 posts)

  1. bruceb1969
    Posted 4 years ago #

    I'm using Configure SMTP v3.1 with Contact Form 7 and gmail as the SMTP server. When I receive the email, the From field has the name of the person who filled out the contact form but the Gmail account as the email address. Can it be set up so the email From field is the person's name and their email address? If that is not possible, can I set it so it is the Gmail address with my name? The way it is now is confusing.


  2. essdub
    Posted 4 years ago #

    This is also a problem for me. I'd love to hear an answer.

  3. lcarlos
    Posted 3 years ago #

    I had the same problem.

    I managed to circumvent by adding the fields name and email on the message body, so I know who sent it.

    On the Contact form 7 plugin config page, scroll to 'email', then on the right hand side just add
    then you will receive this information on the message body.

    It is not the best solution yet, since you can't simply reply emails you get, you have in fact to copy the sender's email from the message body and paste it into the recipient field on your email client, otherwise you're replying to yourself.

  4. Li-An
    Posted 3 years ago #

    Well, same problem. I hoped somebody found a solution...

  5. Li-An
    Posted 3 years ago #

    OK, found the solution - inspired by http://wordpress.org/extend/plugins/wp-mailfrom-ii/ plugin.
    You have to define a low hook priority for Confgure SMTP for the functions wp_mail_from and wp_mail_from_name.
    So open the configure-smtp.php files and change lines 160 and 161 to get

    add_filter( 'wp_mail_from', array( &$this, 'wp_mail_from' ), 1 );
    add_filter( 'wp_mail_from_name', array( &$this, 'wp_mail_from_name' ), 1 );

    It should work.

  6. Li-An
    Posted 3 years ago #

    No, it does not work... Sorry. I think it's not possible at all.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Configure SMTP
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.