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

  • Home
  • SEARCH
  • 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 8802839
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T01:11:13+00:00 2026-06-14T01:11:13+00:00

I need to send out emails. I iterate through a dataset to obtain the

  • 0

I need to send out emails. I iterate through a dataset to obtain the email addresses and other information which is included in the email body.

I prefer the emails to be plain text. My issue is that I can’t figure out how to insert line feeds, so that the information is laid out in a legible manner.

I have tried this:

<email-to address="{$overdue_releases.req_email}"/>

<subject value="OVERDUE ITEMS NOTIFICATION"/>

<body value="This is a notification that you have the following overdue items:{$var.newline}"/>
<body value="-----------------------------------------------------------------{$var.newline}"/>
<body value="{$var.newline}"/>
<body value="Borrower: {$overdue_releases.req_name}{$var.newline}"/>
<body value="Phone: {$overdue_releases.req_phone}{$var.newline}"/>
<body value="Equipment item: {$overdue_releases.eqm_name} - {$overdue_releases.itm_identification}{$var.newline}"/> 
<body value="Date borrowed: {$overdue_releases.rel_date_pickedup}{$var.newline}"/>  
<body value="-----------------------------------------------------------------{$var.newline}"/>  
<body value="Please return the overdue item(s) as AS SOON AS POSSIBLE.{$var.newline}"/>  
<body value="-----------------------------------------------------------------{$var.newline}"/>  

The newline variable was set as & # 10 ; & # 13; (show with spaces so it will display here)

This is not working. The email is simply a concatenation of all the body value tags in one continuous line.

I have also tried to output the email as html and use the characters “<br>” (in hash, ampersand, ascii char format) for the newline variable. This was a failure.

I have not been able to find anything in the doco.

Will I need to resort to creating a txt format JasperReport to attach to an email, or is there a way to insert linefeed and/or markup characters in the email body?

  • 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-14T01:11:14+00:00Added an answer on June 14, 2026 at 1:11 am

    Try using just a single body tag. Either &#10; or just actual new lines in the string should work.

    <body value="This is a notification that you have the following overdue items:
    -----------------------------------------------------------------
    
    Borrower: {$overdue_releases.req_name}
    Phone: {$overdue_releases.req_phone}
    Equipment item: {$overdue_releases.eqm_name} - {$overdue_releases.itm_identification}
    Date borrowed: {$overdue_releases.rel_date_pickedup}
    -----------------------------------------------------------------
    Please return the overdue item(s) as AS SOON AS POSSIBLE.
    ---------------------------------------------------------------"/>
    

    See also this answer: https://stackoverflow.com/a/2012277/1164143. It is suggested that the best (i.e., most correct or most portable) method is to use plain/literal new lines. However encoded new lines (&#10;, &#10;&#13;) work fine in Aviarc.

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

Sidebar

Related Questions

I need to send out ~2000 emails via a sendmail server to email addresses
I need to send out emails at a rate exceeding App Engine's free email
We need to send out thousands of emails per day via ActionMailer in our
So I can trying to send out emails through an automatic system but I
We need the ability to send out automatic emails when certain dates occur or
I'm writing an app which allows users to send out a text-only email to
I'm developing an email marketing system which allows users to send emails to multiple
I need to send a number of emails out from my RoR application, and
i need to find out automationid for key board values? how to send keystrokes
I need to send some information on a VxWorks message queue. The information to

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.