IceWarp 이메일 서버 자세히보기

아이스워프 메일서버

IceWarp API를 이용하여 그룹계정 생성하기

소프트메일 2017. 2. 10. 15:36

안녕하세요?


아이스워프 메일서버의 API를 이용하여 사용자 계정외에 그룹계정을 생성할 수 있습니다.


<?php


$root_api = new COM('IceWarpServer.apiObject');

if (!$root_api) {

echo "Root API couldn't be invoked";

}


$m_email = "test_group1@softmail.co.kr";

$m_utype = 7;

$m_u_name = "테스트그룹";  


if ($account = new COM("IceWarpServer.AccountObject"))

{

$account->New($m_email);

$account->SetProperty("u_type", $m_utype);

$account->SetProperty("u_name", $m_u_name);

$account->Save();

}

?>



그룹계정 외에도 기타 계정타입을 생성할 수 있으며 아래 코드를 참조하시면 됩니다 

 U_Type = $69E;                                                      // Enum 

values=(0 - User, 1 - Mailing list, 2 - Executable, 3 - Notification, 4 - Static Route, 5 - Catalog, 6 - List server, 7 - Group, 8 - Resource) Account type [A]

********** 
그룹 계정을 만들고 텍스트 파일을 연결할 때 TOOL.EXE 명령에서 G_LISTFILE 옵션을 추가하면 파일 생성 후 멤버 추가시 메일서버에 적용됩니다. 
**********


감사합니다.


(주)소프트메일