How to log mail sent?

Moderator: crythias

Locked
dolfiz
Znuny newbie
Posts: 85
Joined: 15 Jan 2014, 21:07
Znuny Version: 3.3.3
Location: Italy

How to log mail sent?

Post by dolfiz »

Hi all,

I've got a client request about logging every mail sent by OTRS in a verbose way on a file. As I can see the OTRS log by default does not write information about mail sent successfuly. Is there an easy way to perform such action? I'm thinking about simple code addition in the proper perl file or something like this. Any suggestions?

As always, thank you for your support.
Luca
OTRS 3.3.3 - Ubuntu server 12.04 - MySQL
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: How to log mail sent?

Post by crythias »

There's also a feature in OTRS
Edit Config Settings in Framework -> Core::Sendmail
SendmailBcc
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
dolfiz
Znuny newbie
Posts: 85
Joined: 15 Jan 2014, 21:07
Znuny Version: 3.3.3
Location: Italy

Re: How to log mail sent?

Post by dolfiz »

crythias wrote:There's also a feature in OTRS
Edit Config Settings in Framework -> Core::Sendmail
SendmailBcc
Nice point! It may be a good solution.

Thanks for the 1000th time crythias ;)
OTRS 3.3.3 - Ubuntu server 12.04 - MySQL
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: How to log mail sent?

Post by jojo »

the logfile does already logging each sent email
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
dolfiz
Znuny newbie
Posts: 85
Joined: 15 Jan 2014, 21:07
Znuny Version: 3.3.3
Location: Italy

Re: How to log mail sent?

Post by dolfiz »

jojo wrote:the logfile does already logging each sent email
Something like this:

Code: Select all

Feb 26 17:02:52 frmz-otrs OTRS-CGI-88[341]: [Info][Kernel::System::Ticket::Article::ArticleSend] Sent email to 'gengis@khan.com' from 'OTRS System <otrs@localhost>'. HistoryType => SendAnswer, Subject => Re: [Ticket#2014022688000016] hfhgfh;
I was thinking about something more verbose. But the BCC solution should work for our requirement.
OTRS 3.3.3 - Ubuntu server 12.04 - MySQL
Locked