• Resolved muydelpalo

    (@muydelpalo)


    Hi!
    I haven’t been able to solve this issue with CF7.
    In “Mail” section I have tried setting “From:” field to
    mail@mydomain.com
    – real name <mail@mydomain.com>
    – [your-name] <mail@mydomain.com>
    However, I don’t know why it always fetches de main email of the site administrator. I have tried changing it to mail@mydomain.com (the one I’d like CF7 to send my the emails from) but nothing changes…
    Any idea what might be happening?

    https://wordpress.org/plugins/contact-form-7/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter muydelpalo

    (@muydelpalo)

    So, I’ve been doing some testing and it turns out the same thing happens with the plugin BackWPuP. It is supposed to send notifications from an email but it is overridden by it also gets the main email. I guess something is overriding it, maybe another plugin… You ever heard about this?

    Thread Starter muydelpalo

    (@muydelpalo)

    Ok, this feels kind of stupid but just in case someone else has this issue check your functions.php file and delete the following lines:

    add_filter('wp_mail_from', 'new_mail_from');
    add_filter('wp_mail_from_name', 'new_mail_from_name');
    
    function new_mail_from($old) {
     return 'mail@domain.com';
    }
    function new_mail_from_name($old) {
     return 'name';
    }
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘From field fetches wrong email’ is closed to new replies.