Announcement

Migration of this forum

Dear users of this forum,

we are pleased to inform you that we will be updating the software behind this forum in the near future.

Existing posts, users and categories will remain untouched.

Important:

  • Each user will need to reset their password.
  • Please select "I forgot my password".
  • Enter the email address you used to register in this forum.
  • You will receive an email with a link to set a new password.
  • Please choose a new (secure) password and confirm the process.

We will keep you informed in the pinned thread.

Kind regards,
Your ReportServer Team


Migration des Forums

Liebe Nutzer dieses Forums,

wir freuen uns, euch mitteilen zu können, dass wir in naher Zukunft die Software hinter diesem Forum aktualisieren werden.

Existierende Beiträge, Nutzer und Kategorien bleiben weiterhin bestehen!

Wichtig:

  • Jeder Nutzer muss sein Passwort neu vergeben.
  • Wählt dazu einfach "Ich habe mein Passwort vergessen".
  • Gebt die E-Mail-Adresse ein, mit der ihr registriert seid.
  • Ihr erhaltet eine E-Mail mit einem Link zur Passwortvergabe.
  • Bitte wählt ein neues (sicheres) Passwort und bestätigt den Vorgang.

Wir halten euch im angepinnten Beitrag auf dem Laufenden!

Mit vielen Grüßen
Euer ReportServer Team

#1 2017-11-23 14:38:17

eike.welk
Member
Registered: 2017-10-12

Insert Newlines into Report Emails

How can I insert newline characters into report emails?

The emails which contain scheduled reports, can be configured in "scheduler.cf".
However, I can't find a way to structure the email body into multiple lines.
The whole text of the email body is in one line.

Regards,
Eike.

Offline

#2 2017-11-28 08:49:39

IF_Eduardo
Administrator
Registered: 2016-11-01
Website

Re: Insert Newlines into Report Emails

Hi Eike,

If you are using 3.0.3, sending HTML emails should be working. We fixed a bug with HTML messages in 3.0.3.
So, using 3.0.3., you can do the following:

If <mailaction html="true">
You can use:
first line &lt;br /&gt; second line

This will be translated to "first line <br /> second line" in your html message and will introduce a new line.

If <mailaction html="false">
You can introduce new lines by just making a newline using your ENTER key.
So if you have:
first line
second line
.. this will be shown in your email.

Best regards,
Eduardo

Offline

#3 2017-11-29 10:48:42

eike.welk
Member
Registered: 2017-10-12

Re: Insert Newlines into Report Emails

Hello Eduardo!

Thank you for your helpful reply.

I use Version 3.0.2.

The trick to insert `<br/>` into HTML emails works with this version. It solves my problem.

However it seems to be impossible to insert newlines into plain text emails. At least it doesn't work reliably. It works with scheduler notifications, but not with `<mailaction>`.
I think that  `<mailaction>` emails are always HTML-emails, even when `<mailaction html="false">` is used in the configuration.

Regards,
Eike.

Offline

#4 2017-11-29 11:07:27

IF_Eduardo
Administrator
Registered: 2016-11-01
Website

Re: Insert Newlines into Report Emails

Hi Eike,

yes, in 3.0.2 there was a bug where all scheduler emails with an attachment were sent as HTML, as you observed. Check https://reportserver.net/releasenotes/RS3.0.3.html for this: RS-2501    Bug    Scheduler emails with attachment are always sent as html
Please upgrade to 3.0.3 to solve this problem.

Regards,
Eduardo

Offline

#5 2017-11-29 11:50:35

eike.welk
Member
Registered: 2017-10-12

Re: Insert Newlines into Report Emails

Hello Eduardo!

I'll update soon. (OK, probably in the new year.)

Regards,
Eike.

Offline

#6 2017-11-29 13:05:29

IF_Eduardo
Administrator
Registered: 2016-11-01
Website

Re: Insert Newlines into Report Emails

Hi Eike,

we do recommend you to do upgrade soon. The update process is very smooth and easy ( https://reportserver.net/en/tutorials/upgrade-303/ ) and a lot of bugs were corrected in 3.0.3.

Basically, you only have to replace the reportserver files and restart tomcat.

Regards,
Eduardo

Offline

#7 2017-11-30 11:51:59

eike.welk
Member
Registered: 2017-10-12

Re: Insert Newlines into Report Emails

Hello Eduardo!

I have just upgraded to Version 3.0.3. Everything seems to still work. The upgrade process is indeed fairly simple.

Regards,
Eike.

Offline

Board footer

Powered by FluxBB