最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

plugins - Remove on behalf of in wordpress emails?

programmeradmin4浏览0评论
  //email to members
        $Memberdata_all ="select * from lwy_users where ID = $GuestID[$h]"; 
        $Memberdata_array = $wpdb->get_results($Memberdata_all, OBJECT);
        $to = $Memberdata_array[0]->user_email; 
        $from=$Sender_data_array[0]->user_email;     
        // Email subject and body text
        $link='abc';
        $subject = 'abc';
        $headers = "From: "[email protected]"\r\n";
        $message = "Hi $fromname, <br/> <br/>
        This is to inform you f.<br/> <br/>
        The following are the member details:<br/> <br/>


        MemberID:       $user_id   <br/>  
        MemberName:     $fromname $fromnamelastname  <br/>
         Club Name: $clubname<br/>    
         Club Location  $ClubCity<br/>
         Club Website:  $ClubWebsite<br/><br/><br/>  

        Here are the hosting details:<br/><br/>
        $noticetext <br/></br/>
        Please visit the link to accept the request  <a href='#'></a> <br/></br/><br/>
        If you have any questions, please contact the member directly at  $from <br/><br/>
        Regards<br/><br/>  

";  

add_filter('wp_mail_content_type',create_function('', 'return "text/html"; '));
  $hostemail=wp_mail($to, $subject, $message, $headers ); 

in Received email im getting...

[email protected]; on behalf of; WordPress <[email protected]>

please help me ,how can i remove [email protected]; on behalf of; WordPress .i need only from [email protected]

  //email to members
        $Memberdata_all ="select * from lwy_users where ID = $GuestID[$h]"; 
        $Memberdata_array = $wpdb->get_results($Memberdata_all, OBJECT);
        $to = $Memberdata_array[0]->user_email; 
        $from=$Sender_data_array[0]->user_email;     
        // Email subject and body text
        $link='abc';
        $subject = 'abc';
        $headers = "From: "[email protected]"\r\n";
        $message = "Hi $fromname, <br/> <br/>
        This is to inform you f.<br/> <br/>
        The following are the member details:<br/> <br/>


        MemberID:       $user_id   <br/>  
        MemberName:     $fromname $fromnamelastname  <br/>
         Club Name: $clubname<br/>    
         Club Location  $ClubCity<br/>
         Club Website:  $ClubWebsite<br/><br/><br/>  

        Here are the hosting details:<br/><br/>
        $noticetext <br/></br/>
        Please visit the link to accept the request  <a href='#'></a> <br/></br/><br/>
        If you have any questions, please contact the member directly at  $from <br/><br/>
        Regards<br/><br/>  

";  

add_filter('wp_mail_content_type',create_function('', 'return "text/html"; '));
  $hostemail=wp_mail($to, $subject, $message, $headers ); 

in Received email im getting...

[email protected]; on behalf of; WordPress <[email protected]>

please help me ,how can i remove [email protected]; on behalf of; WordPress .i need only from [email protected]

Share Improve this question edited May 11, 2020 at 11:25 Mr7-itsurdeveloper asked Jul 31, 2014 at 5:21 Mr7-itsurdeveloperMr7-itsurdeveloper 994 bronze badges 1
  • 1 This is a theme my login plugin related issue which is off topic. Thanks – Pieter Goosen Commented Jul 31, 2014 at 9:37
Add a comment  | 

1 Answer 1

Reset to default 1

This probably has something to do with the way your hosting company had configured their mail sending utilities that php is using. As an alternative you can try to use one of the plugins which enable you to send mail via SMTP

发布评论

评论列表(0)

  1. 暂无评论