
Hello developers, I have a question about sending HTML mail from the OTRS system. Is this in some kind of way possible. I already implemented a nice HTML editor for the AgentCompose function. So thats already done. But how can I change the content type from text/plain to text/html for outgoing mail? While sending mail with HTML tags, I receive mail with plain text and plain HTML tags, without the desired styles. I hope someone can help me or has the same question. Because of the fact our company is using HTML templates it would be very nice to send HTML mails! Kind regards, Chris Reurings

Hi Chris, On Tue, Dec 23, 2003 at 02:33:49PM +0100, Reurings, Chris wrote:
I have a question about sending HTML mail from the OTRS system. Is this in some kind of way possible. I already implemented a nice HTML editor for the AgentCompose function. So thats already done. But how can I change the content type from text/plain to text/html for outgoing mail? While sending mail with HTML tags, I receive mail with plain text and plain HTML tags, without the
Try this Kernel/System/Ticket/SendArticle.pm ~ line 106 [...] # build header my $Header = { From => $Param{From}, To => $Param{To}, Cc => $Param{Cc}, Bcc => $Self->{SendmailBcc}, Subject => $Param{Subject}, 'Message-ID' => $MessageID, 'In-Reply-To:' => $InReplyTo, 'References' => $InReplyTo, 'X-Mailer' => "OTRS Mail Service ($VERSION)", 'X-Powered-By' => 'OTRS - Open Ticket Request System (http://otrs.org/)', Organization => $Self->{Organization}, Type => 'text/plain; charset='.$Charset, Encoding => '8bit', }; [...] There you could change the text/plain to text/html. Maybe this is what you want.
Chris Reurings
Martin Edenhofer -- ((otrs.de)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg http://www.otrs.de/ :: Manage your communication!

Hi, I changed text/plain to text/html without any effect. Answered tickets are still plain text. Which file is responsible for sending tickets from the OTRS system, related to plain or html content? Chris -----Original Message----- From: dev-bounces@otrs.org [mailto:dev-bounces@otrs.org]On Behalf Of Martin Edenhofer Sent: Tuesday, December 23, 2003 4:34 PM To: Development community of OTRS Subject: Re: [dev] HTML email Hi Chris, On Tue, Dec 23, 2003 at 02:33:49PM +0100, Reurings, Chris wrote:
I have a question about sending HTML mail from the OTRS system. Is this in some kind of way possible. I already implemented a nice HTML editor for the AgentCompose function. So that's already done. But how can I change the content type from text/plain to text/html for outgoing mail? While sending mail with HTML tags, I receive mail with plain text and plain HTML tags, without the
Try this Kernel/System/Ticket/SendArticle.pm ~ line 106 [...] # build header my $Header = { From => $Param{From}, To => $Param{To}, Cc => $Param{Cc}, Bcc => $Self->{SendmailBcc}, Subject => $Param{Subject}, 'Message-ID' => $MessageID, 'In-Reply-To:' => $InReplyTo, 'References' => $InReplyTo, 'X-Mailer' => "OTRS Mail Service ($VERSION)", 'X-Powered-By' => 'OTRS - Open Ticket Request System (http://otrs.org/)', Organization => $Self->{Organization}, Type => 'text/plain; charset='.$Charset, Encoding => '8bit', }; [...] There you could change the text/plain to text/html. Maybe this is what you want.
Chris Reurings
Martin Edenhofer -- ((otrs.de)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg http://www.otrs.de/ :: Manage your communication! _______________________________________________ OTRS mailing list: dev - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/dev To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev

Hi Chris, On Wed, Dec 24, 2003 at 08:51:06AM +0100, Reurings, Chris wrote:
Hi,
I changed text/plain to text/html without any effect. Answered tickets are still plain text. Which file is responsible for sending tickets from the OTRS system, related to plain or html content?
The way is: HTML Form -=> post Body on Kernel/Modules/AgentCompose.pm -=> Kernel/System/Ticket/SendArticle.pm: SendArticle() -=> Kernel/System/Email.pm: Send(). I think that is what you want to know.
Chris
Martin -- ((otrs.de)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg http://www.otrs.de/ :: Manage your communication!

Hi, Not exactly. How can I post a HTML form into AgentCompose.pm? $Data{"Body"} And then? Just copy paste the HTML body code? I just tested it, but without effect. Where is the setting to let the system send text/html content instead of text/plain content!? Because when I am sending a reply to a customer it is still plain mail..... Christmas greetings, Chris -----Original Message----- From: dev-bounces@otrs.org [mailto:dev-bounces@otrs.org]On Behalf Of Martin Edenhofer Sent: Wednesday, December 24, 2003 10:02 AM To: Development community of OTRS Subject: Re: [dev] HTML email Hi Chris, On Wed, Dec 24, 2003 at 08:51:06AM +0100, Reurings, Chris wrote:
Hi,
I changed text/plain to text/html without any effect. Answered tickets are still plain text. Which file is responsible for sending tickets from the OTRS system, related to plain or html content?
The way is: HTML Form -=> post Body on Kernel/Modules/AgentCompose.pm -=> Kernel/System/Ticket/SendArticle.pm: SendArticle() -=> Kernel/System/Email.pm: Send(). I think that is what you want to know.
Chris
Martin -- ((otrs.de)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg http://www.otrs.de/ :: Manage your communication! _______________________________________________ OTRS mailing list: dev - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/dev To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev
participants (2)
-
Martin Edenhofer
-
Reurings, Chris