Support » Plugin: New User Approve » content-type filter for emails

  • johncoleman83

    (@johncoleman83)



    My e-mails being generated by this plugin are being sent and interpreted with content-type: text/plain.

    How do I apply a filter so that all e-mails are sent with content-type: text/html? I need this especially for the $headers array, the “$subject” and “$from” sections. I noticed this code in new-user-approve.php:

    $from_name = get_option( 'blogname' );
    
    		$headers = array(
    			"From: \"{$from_name}\" <{$admin_email}>\n",
    			"Content-Type: text/html; charset=\"" . get_option( 'blog_charset' )

    Is that supposed to apply the content-type: html in the header? It doesn’t seem to work for me?

    Please help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Josh Harrison

    (@picklewagon)

    The plugin is sending the emails as plain text. There is no email in the plugin that is sent as text/html as you indicate above.

    If you would like to send your email as there are at least a few ways to make it happen

    WordPress has a filter to set it using the wp_mail_content_type filter.

    The plugin has a new_user_approve_email_header filter that will allow you to change the type.

    And last but not least you can buy a commercial plugin that will allow you to set an option to send as html at https://newuserapprove.com/

    Thanks! It’s a great plugin! Very helpful.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘content-type filter for emails’ is closed to new replies.