Grow your CSS skills. Land your dream job.

Mail format

  • # April 24, 2013 at 9:17 am

    Hi,

    Users on my website can send mails to each other on their registered email ids through my website. But, the problem if A types his message in the message box and sends it to B in this format:

    Hi,

    My name is Erik and I am an English to French freelance translator with five years of experience.

    Best Regards,
    Erik

    B receives the mail as shown below:

    Hi,My name is Erik and I am an English to French freelance translator with five years of experience.Best Regards, Erik

    Can anyone help me with this?

    # April 24, 2013 at 9:20 am

    I assume you are using a single textbook?

    Might be an idea to have have three. Unless you can format the sent text.

    # April 24, 2013 at 9:22 am

    First guess is you’re sending the email as html which doesn’t preserve line-breaks.

    # April 24, 2013 at 10:00 am

    Are you using php?

    Wrap the text in the [nl2br](http://php.net/manual/en/function.nl2br.php “nl2br”) function when you output it.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".