[SOLVED] Format - Mail Body

Moderator: crythias

Post Reply
abelic
Znuny newbie
Posts: 24
Joined: 30 Jun 2017, 17:07
Znuny Version: 6.4
Real Name: Aleksandar Belic
Company: CP

[SOLVED] Format - Mail Body

Post by abelic »

Hi,

I've setup my automatic email reports in cron with command:

Code: Select all

/opt/otrs/bin/otrs.Console.pl Maint::Stats::Generate --number xxxx --format Excel --mail-sender xxxxx --mail-recipient xxxxx --mail-body 'xxxx'
Everything works fine, but now I would like to format mail body, just with break lines. Can somebody help me with this.

Thanks in advance.
Sasha
Last edited by abelic on 17 Apr 2019, 22:07, edited 2 times in total.
Znuny 6.4, CentOS7, MariaDB
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Format - Mail Body

Post by root »

Hi,

Maybe this helps you:

Code: Select all

--mail-body "$(echo -e "This\nis\nmy\ntest.")"
- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
abelic
Znuny newbie
Posts: 24
Joined: 30 Jun 2017, 17:07
Znuny Version: 6.4
Real Name: Aleksandar Belic
Company: CP

Re: Format - Mail Body

Post by abelic »

Hi Roy,

Yes, that's it!

Thank you very much.

Kind regards
Sasha
Znuny 6.4, CentOS7, MariaDB
Post Reply