im using the php soapclient to create articles in otrs and it works fine.
But i just can create them without send an email to the destination. Also i cant create HTML body for the created article.
Code: Select all
$ticketID = $this->doSOAPCall('Ticket','TicketCreate',array(
'UserID' => $this->OTRS_user_id,
'QueueID' => $CONFIG['queueIDs']['export'],
'Lock' => 'unlock',
'Title' => $subject,
'Priority' => '3 normal',
'State' => 'new',
'CustomerID' => 'test@test.com',
'CustomerUser' => 'test@test.com',
'OwnerID' => 1
));
$articleID = $this->doSOAPCall('Ticket','ArticleCreate',array(
'UserID' => $this->OTRS_user_id,
'TicketID' => $ticketID,
'To' => 'dest@mail.com',
'From' => 'from@mail.com',
'ArticleType' => 'email-external',
'SenderType' => 'system',
'Subject' => "topic",
'Body' => "<b>hello world</b>",
'ContentType' => 'text/html; charset=UTF-8',
'HistoryType' => 'OwnerUpdate',
'HistoryComment'=> '--'
));
I saw something about the ArticlePlain but i dont understand it at all.
Hope you can help me!
Thanks