Patric wrote:
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.
*** 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 ***
Hi All,
Just as a follow-up, I solved my problem.
If you look at my code above, in the Sign and Crypt fields, I have the
Type and Key fields twice in each - in each instance PGP and SMIME are
the 2 possible values that you can set, and it is given like that in the
example on the API documentation.
Not knowing much about this whole lot, I just copied and pasted the
examples as is, and the duplicate definitions were causing an error that
I found by debugging the code...
So look out for those instances when using the API example code! It will
save you a LOT of time :]
Thanks
Patrick
--
Q: I want to be a sysadmin. What should I do?
A: Seek professional help.
----------------------------------------------------------------------
Find out how you can get spam free email.
http://www.bluebottle.com/tag/3
_______________________________________________
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/