Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8611073
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T04:16:55+00:00 2026-06-12T04:16:55+00:00

In our internal CRM we have a simple html input textarea where you can

  • 0

In our internal CRM we have a simple html input textarea where you can leave notes and messages. We later use this information to email this, only since that email is in HTML the formating is all wrong.

So if for example I have the following in my MYSQL table:

This is a test message!

Some line
Some more lines

If we later email this it comes out as:

This is a test message! Some line Some more lines

This is obviously not wanted but I don’t want to add some complicated WYSIWYG editor to our CRM. Can I allow line-breaks? If so, how?

I don’t want to use <pre></pre> tags because I believe it is not supported in all email clients (I could be wrong).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T04:16:56+00:00Added an answer on June 12, 2026 at 4:16 am

    You could use text/plain header, if you don’t intend on using any HTML tags in the message. (That would mean no colors, no links, and no text formatting).

    You could also make a quick and dirty solution to replace all \ns in your text to <br>\n.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple web service sitting on our internal network. I used SOAPUI
I have switched our internal codebase to use Mercurial, with a hosted remote repository.
I have a report in our internal system that can return anywhere from 1
I have a private nuget feed on one of our internal servers. I can
We are making a Jabber client for our internal use in our company and
I have started upgrading one of our internal software applications, written in ASP.NET Web
I have just re-written the authentication for one of our internal web applications to
We have a internal chat channel in our intranet. We keep on posting useful
For our internal monitoring process, I want to find out how many exceptions have
I have 2 Oracle 10.2.0.4 servers, one located within our internal intranet network, and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.