WordPress.org

Forums

Contact Form 7
ampersand becomes & (8 posts)

  1. paulgareau
    Member
    Posted 1 year ago #

    Ampersands in the sender's name become &-amp; in received emails. For example, messages sent from A&A Systems will turn into A&-amp;A Systems in the email inbox. (without the hyphen)

    https://wordpress.org/plugins/contact-form-7/

  2. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 1 year ago #

    What mailer do you use?

  3. paulgareau
    Member
    Posted 1 year ago #

    gmail

  4. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 1 year ago #

    Gmail doesn't convert characters in mail headers to HTML entities. Try deactivating all other plugins and switching to the default theme since one of them is probably doing it.

  5. paulgareau
    Member
    Posted 1 year ago #

    Thanks. Are you saying you've tested this with an ampersand in the sender name and it works fine? I'm thinking using htmlspecialchars_decode before sending the message would take care of it.

  6. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 1 year ago #

    Are you saying you've tested this with an ampersand in the sender name and it works fine?

    Yes.

    I'm thinking using htmlspecialchars_decode before sending the message would take care of it.

    Probably not.

  7. paulgareau
    Member
    Posted 1 year ago #

    I'd be happy to test that. Tell me which file sends the email and I'll give it a shot.

  8. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 1 year ago #

    As I wrote in my previous comment, try deactivating all other plugins and switching to the default theme.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Contact Form 7
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic