亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

OTRS:通過 Web 服務創建外發電子郵件票

OTRS:通過 Web 服務創建外發電子郵件票

PHP
慕田峪7331174 2022-12-11 10:13:24
我正在嘗試通過 PHP 和來自 OTRS 的 REST 通用接口創建票證(https://doc.otrs.com/doc/manual/admin/6.0/en/html/genericinterface.html#id-1.6.12.10.7.2) .我可以創建工單和文章。但 OTRS 歷史記錄看起來不像是外發電子郵件,而是用戶正在向隊列發送票證。而且也沒有郵件發送給客戶:-(。但是我喜歡有一個外發的電子郵件票證和票證的待處理狀態。這是我的 PHP 代碼<?phpheader("Content-type: application/json; charset=utf-8");require __DIR__ . '/vendor/autoload.php';use GuzzleHttp\Client;$client = new Client(['base_uri' => 'http://test-otrs.company.local/otrs/nph-genericinterface.pl/Webservice/GenericTicketConnectorREST/']);$arrTicket = array(    "Title"        => 'some ticket title',    "Queue"        => 'testqueue',    "Lock"         => 'unlock',    "Type"         => 'Unclassified',    "State"        => 'new',    "Priority"     => '3 normal',    "Owner"        => 'username',    "CustomerUser" => '[email protected]');$arrArticle = array(    "CommunicationChannel"  => 'Email',    "SenderType"            => 'agent',    "To"                    => '[email protected]',    "Subject"               => 'some subject',    "Body"                  => 'some body',    "ContentType"           => 'text/plain; charset=utf8');$response = $client->post('Ticket', ['json' => array("UserLogin" => "username", "Password" => "testtesttest", "Ticket" => $arrTicket, "Article" => $arrArticle)]);if ($response->getBody())    {    echo $response->getBody();    }
查看完整描述

1 回答

?
MYYA

TA貢獻1868條經驗 獲得超4個贊

https://forums.otterhub.org/viewtopic.php?p=168025#p168025解決了我的問題。您需要一個額外的插件 ( https://github.com/znuny/Znuny4OTRS-GIArticleSend ) 才能發送傳出的電子郵件票證。



查看完整回答
反對 回復 2022-12-11
  • 1 回答
  • 0 關注
  • 123 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號