Sending message to an user


Home Forums Front End PM PRO Sending message to an user

This topic is: Not Resolved
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #19180
    beukenhof
    Participant

    When I send a message to an user the “from” email address is the standard email address from my website. I did expect that the “from” email address should be the email address of the user who sends the message. Is this possible to achieve this with Front End PM Pro?

    #19332
    Shamim Hasan
    Keymaster

    We cannot send email from an email address which we do not own. You do not own your user email address, so you can not send email from that email address. We can try but most of the cases it will fail.

    #19343
    beukenhof
    Participant

    I do realize that I did not explain what I want.

    An user named “user a” want to send a message to an user named “user b”.

    I do want to setup the message using

    From: the email address of my site
    To: the e-email address of user b
    Reply to: the e-mail address of user a

    Is this possible? I know it can be done because it is used by other plugins i am using.

    #19357
    Shamim Hasan
    Keymaster

    Yes, it is possible.
    add following code in your theme’s (child theme’s if any) functions.php

    add_filter( 'fep_filter_before_email_send', function( $content, $mgs ){
        $content['headers']['reply-to'] = 'Reply-To: ' . fep_get_userdata( $mgs->mgs_author, 'user_email', 'id' );
        return $content;
    }, 10, 2 );
    
Viewing 4 posts - 1 through 4 (of 4 total)

You need to purchase ‘Front End PM PRO’ to create topic in this support forum.

If you already purchased ‘Front End PM PRO’ please LOGIN.