WordPress.org

Ready to get started?Download WordPress

Forums

Email Users
[resolved] HTML charcters showing in email (6 posts)

  1. FatLabllc
    Member
    Posted 1 year ago #

    A blast email went out with format set to HTML. Email was received by users but HTML was visible starting with <html><head><title> and including paragraph tags etc.

    Text was copied from plain text and looked fine in the visual WordPress editor.

    Any Ideas?

    http://wordpress.org/extend/plugins/email-users/

  2. Mike Walsh
    Member
    Plugin Author

    Posted 1 year ago #

    Off the top of my head, I can't think of what would cause that to happen. Nothing has changed in the plugin in quite a while now. I assume this has worked for you previously. Any changes to the email configuration on your server? Does the Test Message work correctly?

  3. cucocreative
    Member
    Posted 1 year ago #

    I too an having this problem.

    It looks fine in the visual editor, this is what you seen in the received email:

    <html><head><title>test</title></head><body><p>Hello</p>
    <p>Can you see my tags?</p>
    </body></html>

    [Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum's parser.]

    Even when I send a test notification to myself, I can see all the html tags. It's fine whan I just send plain text, but we need to send html formatted emails.

    Any ideas?

  4. Mike Walsh
    Member
    Plugin Author

    Posted 1 year ago #

    It sounds like your mail header isn't set correctly. Have you looked at the raw mail headers to make sure they are of the right type?

    It should read something like:

    Content-Type: text/html

    As long as EMail Users is set to use HTML email, it will try to send HTML email. It uses the value from get_bloginfo('html_type') (see this) to get the content type setting from WordPress.

    If the header is correct, then for some reason your mail client isn't processing it.

  5. cucocreative
    Member
    Posted 1 year ago #

    Hi

    The content type in the raw header was:

    Content-Type: text/plain; charset="UTF-8"

    Even though I selected HTML from the drop down.

    I was able to change this be adding this snippet to the function.php

    Thanks for pushing me in the right direction.

  6. Mike Walsh
    Member
    Plugin Author

    Posted 1 year ago #

    Glad you got it working. It is odd that WordPress is returning the content type as plain text. I am not even sure where/how that setting is set but that is what the plugin uses for constructing the header.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags