Author Topic: New line in the text body in Email  (Read 7343 times)

Offline TommyHilfig

  • Newcomer
  • *
  • Posts: 16
    • View Profile
New line in the text body in Email
« on: January 28, 2021, 03:38:42 PM »
Hey,

Just a quick question... I have been looking at the 'Email' function. I have set it up and the body of text has a number of paragraphs spaced by new lines.  when i click ok and email pops up in Outlook... all the line spaces have gone and its one big paragraph.  Is there a special way to create a new line ? ( i have tried {nl} but that didn't seem to work either!

What i want it to look like....

Please find attached photographs from todays A Game league between Team FC vs TeamB FC.

If you have any enquiries please do not hesitate to contact me.

Kind regards


What it looks like in email software:

Please find attached photographs from todays A Game league between Team FC vs TeamB FC. If you have any enquiries please do not hesitate to contact me. Kind regards [/i]


Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25020
    • View Profile
    • Camera Bits, Inc.
Re: New line in the text body in Email
« Reply #1 on: January 28, 2021, 07:58:35 PM »
Hey,

Just a quick question... I have been looking at the 'Email' function. I have set it up and the body of text has a number of paragraphs spaced by new lines.  when i click ok and email pops up in Outlook... all the line spaces have gone and its one big paragraph.  Is there a special way to create a new line ? ( i have tried {nl} but that didn't seem to work either!

What i want it to look like....

Please find attached photographs from todays A Game league between Team FC vs TeamB FC.

If you have any enquiries please do not hesitate to contact me.

Kind regards


What it looks like in email software:

Please find attached photographs from todays A Game league between Team FC vs TeamB FC. If you have any enquiries please do not hesitate to contact me. Kind regards [/i]

Which version and build of Photo Mechanic are you using?

-Kirk

Offline TommyHilfig

  • Newcomer
  • *
  • Posts: 16
    • View Profile
Re: New line in the text body in Email
« Reply #2 on: January 29, 2021, 03:46:12 AM »
Hi Kirk,

VERSION 6.0, BUILD 5404 (e13fb4f)

cheers

Offline TommyHilfig

  • Newcomer
  • *
  • Posts: 16
    • View Profile
Re: New line in the text body in Email
« Reply #3 on: January 29, 2021, 03:53:16 AM »
screen grabs of examples

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25020
    • View Profile
    • Camera Bits, Inc.
Re: New line in the text body in Email
« Reply #4 on: January 29, 2021, 09:01:36 AM »
Tommy,

Thanks for the additional information.  I looked at the code and we are doing line ending conversion for Outlook.  Microsoft may have changed what line ending characters that they use to represent a new line from what they used in the past.  We're converting line feed characters to carriage return characters.  I bet they now want line feeds instead of carriage returns.  So we could stop doing that conversion and that may solve the problem.

Would you be willing to try a test build that I provide you?

Thanks,

-Kirk

Offline TommyHilfig

  • Newcomer
  • *
  • Posts: 16
    • View Profile
Re: New line in the text body in Email
« Reply #5 on: January 29, 2021, 11:16:17 AM »
Hi Kirk.

thanks for your reply.  Yes more than happy to try a test build

j

Offline Odd Skjaeveland

  • Full Member
  • ***
  • Posts: 188
    • View Profile
Re: New line in the text body in Email
« Reply #6 on: January 31, 2021, 12:53:02 AM »
...I bet they now want line feeds instead of carriage returns.
It would hardly surprise anyone that MS changes and breaks things. On the other hand, Outlook has an appetite for end of line marks:
https://docs.microsoft.com/en-us/outlook/troubleshoot/message-body/line-breaks-are-removed-in-posts-made-in-plain-text
--
Odd S.

Offline TommyHilfig

  • Newcomer
  • *
  • Posts: 16
    • View Profile
Re: New line in the text body in Email
« Reply #7 on: February 02, 2021, 05:00:24 AM »
Thanks Odd S,

Unfortunately, i couldn't find the 'options' in outlook listed in your link (i have 365). I have gone through everything to try and find where it is but to no avail.

j

Offline Odd Skjaeveland

  • Full Member
  • ***
  • Posts: 188
    • View Profile
Re: New line in the text body in Email
« Reply #8 on: February 02, 2021, 10:20:04 AM »
...couldn't find the 'options' in outlook listed in your link (i have 365).

Hmm, 365 desktop or web may perhaps make a difference: https://powerusers.microsoft.com/t5/General-Power-Automate/Flow-Approval-Email-has-no-line-breaks-in-Outlook/td-p/319718

I wonder if
1) PM strips off line breaks before sending
2) Outlook strips off line breaks (physically removes them from the message)
3) Outlook skips (doesn't show) line breaks that do exist in the message

Can you view a message using some other mail reader?
Can Outlook do "save message as text"? A saved message may potentially have line breaks intact.

--
Odd S.

Offline TommyHilfig

  • Newcomer
  • *
  • Posts: 16
    • View Profile
Re: New line in the text body in Email
« Reply #9 on: February 02, 2021, 03:11:32 PM »
Just a quick reply... will look into it a bit more tomorrow...

but when i change it the send in 'Mail'... the line breaks are there... so i think it is definitely a outlook thing.

will play around tomorrow

thanks
J

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25020
    • View Profile
    • Camera Bits, Inc.
Re: New line in the text body in Email
« Reply #10 on: February 03, 2021, 03:31:06 PM »
I sent a build to Tommy that does no line end conversion and they're still getting stripped so it appears to be a problem with Outlook itself that cannot be overcome on our end.

-Kirk

Offline TommyHilfig

  • Newcomer
  • *
  • Posts: 16
    • View Profile
Re: New line in the text body in Email
« Reply #11 on: February 04, 2021, 12:57:42 AM »
I sent a build to Tommy that does no line end conversion and they're still getting stripped so it appears to be a problem with Outlook itself that cannot be overcome on our end.

-Kirk

Thanks for your help Kirk... grade A service... i'm not holding out hope that Microsoft will be the same!

thanks again