Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Open URL Function and line breaks

Featured Replies

Hi,

I'm using FM9 and the Open URL function to open a mailto: link and populate the subject and body in the user's email client.

The body needs to have line breaks.

However, on PCs the Paragraph character doesn't do anything and I've tried r and n for return and newline but that prints the literal string r and n.

So then I tried using the hex value %0D which works on PCs but prints the literal string %0D on Macs.

Is there a character code I should be using or a better way of accomplishing this?

Thanks

Here's the code called inside Open URL:


"mailto:" & Dispatch Delivery::Delivery Contact Email & "?subject=POD - " &  Publications::Publication Name& " - " &  Issues Name Map::Issue& 

"&body=Please be advised that the following file has been released to the publication. %0D PDF attached for reference.%0D %0D" & 

"Title: " &  Publications::Publication Name& "%0D" & 

"Insertion: " &  Issues Name Map::Issue& "%0D" & 

"Space: " &  Sizes Summary Map::Size& "%0D" & 

"IO: " & orderform::IO Number & "%0D" & 

"POD: "  & "%0D" & 

"Date: " & Dispatch Delivery::DDate & "%0D" & 

"Time: "  & Dispatch Delivery::Ddelivered & "%0D" & 

"Type: "  & Dispatch Delivery::Calc DMessenger & "%0D"

  • Author

My boss found the solution which is to repeat "&body=" for each line of the body.

This wasn't obvious to me so hopefully it will save someone else time.

  • 4 years later...
  • Newbies

How to use mailto for a url to make  body with multiple paragraphs, new lines, carriage returns, %OD %0A from filemaker with firefox seamonkey thunderbird mac osx all you have to do is use another &body= for each line, for example:  &body=Dear Sir,&body=&body=This is your letter, with two returns separating your salutation from the actual body.&

 

I am just repeating the brilliant solution described above, but using lots more keywords that would have helped me find this sooner.  Thanks so much for it!

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.