#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

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

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

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