• We are facing one issue while sending mail through contact form 7. We are setting one of the field of form as mail sender.

    we are setting one of the email field of form as sender in Contact Form 7(https://www.screencast.com/t/va8Do1mv7X). but It always takes email address as “from” which has been set in wp-config file. Even two standard wordpress hooks named “wp_mail_from_name” and “wp_mail_from” are not taking effect.
    We tried to check contact form 7 mail sending code, It also sets headers correctly but still it is sending mail as per wp-config settings.It looks like system is taking “SMTP_FROM” wp-config file only. If we don’t set “SMTP FROM” in config file, mails are not being sent at all and on setup it always takes this setting instead of contact form 7.

    would you please let us know if it is any server related issue and how to overcome it?

Viewing 1 replies (of 1 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    Why did you think that you had to set “SMTP_FROM” in the wp-config.php file? I don’t even know what the constant is.

Viewing 1 replies (of 1 total)
  • The topic ‘From Email Not being Set’ is closed to new replies.