Hi All,
Umberto Nicoletti wrote:
I've implemented a SOAP interface over OTRS 2.1
I have been playing with this implementation, and am struggling with the
following :
I want to create a ticket, and email it to a customer. To this end I
have tried to use ArticleSend(). The article is created in the ticket,
but it is never emailed to the customer.
I have added the following to the otrs-rpc.cgi that Umberto attached in
his email :
#!/usr/bin/perl -w
#
# Created by Umberto Nicoletti, 2007
# [EMAIL PROTECTED]
#
...
if ( $TicketID ) {
my $ArticleID = $TicketObject->ArticleCreate(
TicketID => $TicketID,
ArticleType => 'email-internal',
SenderType => 'agent',
From => $from,
Subject => $subject,
Body => $body,
ContentType => 'text/plain; charset=ISO-8859-15',
HistoryType => 'EmailCustomer',
HistoryComment => 'Created with RPC server',
UserID => $UserID,
NoAgentNotify => 0,
);
} else {
return "Error creating ticket\n";
}
*** MY ADDITION START ***
my $ArticleID = $TicketObject->ArticleSend(
TicketID => $TicketID,
ArticleType => 'email-external',
SenderType => 'system',
From => '[EMAIL PROTECTED]',
To => '[EMAIL PROTECTED]',
Subject => 'Testing 123',
Body => 'Testing by Patrick',
Charset => 'ISO-8859-15',
Type => 'text/plain',
Sign => {
Type => 'PGP',
SubType => 'Inline|Detached',
Key => '81877F5E',
Type => 'SMIME',
Key => '3b630c80',
},
Crypt => {
Type => 'PGP',
SubType => 'Inline|Detached',
Key => '81877F5E',
Type => 'SMIME',
Key => '3b630c80',
},
HistoryType => 'EmailCustomer',
HistoryComment => 'Emailing the ticket to the customer',
NoAgentNotify => 0,
UserID => $UserID,
);
*** MY ADDITION END ***
return "Created ticket: $TicketID\n";
}
Can anybody point out where I am going wrong please?
Many thanks!
Patrick
--
Q: I want to be a sysadmin. What should I do?
A: Seek professional help.
----------------------------------------------------------------------
Get a free email account with anti spam protection.
http://www.bluebottle.com/tag/2
_______________________________________________
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
Support or consulting for your OTRS system?
=> http://www.otrs.com/