• Hello,
    I have a simple question.

    Can I send newsletter in plain text format?
    This is a MUST HAVE feature for me,
    even if I have to hack the code.

    Thanks in advance,

    Isao

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author eventualo

    (@eventualo)

    I have not tested the following code but maybe it could work… You can paste it in a plugin file or in functions.php into theme folder. Let us know if it works.

    function only_plain_text_mail ( $phpmailer ) {
    	$phpmailer->IsHTML(false);
    	$phpmailer->AltBody = "";
    }
    add_action( 'phpmailer_init', 'only_plain_text_mail', 100 );
    Thread Starter isaoyoshikoshi

    (@isaoyoshikoshi)

    Hi, eventualo!
    Thanks for the hack.

    I’ve tested it, so plain text mail was sent.
    But line feeds were replaced by
    and <p> tags.
    Off course tags must be “real” line feed.
    Any suggestions?

    Plugin Author eventualo

    (@eventualo)

    You can try in Settings > Newsletter > tab General: there is an option to transform or not carriage returns in break tag. Maybe it can help you.

    Thread Starter isaoyoshikoshi

    (@isaoyoshikoshi)

    Dear eventualo,
    I’ve tried as you advised, “clean” plain text mail sent to the recipients.
    Many thanks for your kind advice!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Newsletter in plain text’ is closed to new replies.