在WordPress的电子邮件中代表删除?

时间:2014-07-31 作者:Mr7-itsurdeveloper

  //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 ); 
在收到的电子邮件中,我正在获取。。。

[email protected]; on behalf of; WordPress <[email protected]>
请帮帮我,我怎样才能删除[email protected];代表:;WordPress。我只需要[email protected]

1 个回复
SO网友:Mark Kaplun

这可能与托管公司配置php使用的邮件发送实用程序的方式有关。作为替代方案,您可以尝试使用其中一个插件,该插件使您能够通过SMTP发送邮件

结束

相关推荐

How can I find plugins' slug?

我想知道如何才能找到插件的slug(slug=WordPress用来更新插件和确定哪些插件当前处于活动状态的内部名称)?它通常是插件的文件夹名,但如果插件没有文件夹,则是其文件名(如hello.php)。是否有其他例外情况?大小写字符重要吗</插件的slug是否可以与其文件夹名不同?如果有一个叫做hello的插件呢。php和另一个/您好。php/您好。php