메일 전송 기능 삭제. 나중에 필요하면 다시 추가하기로.

This commit is contained in:
2018-03-18 05:48:56 +09:00
parent 6130bd22cb
commit 1ad7d17bbe
63 changed files with 1 additions and 8663 deletions
-60
View File
@@ -42,63 +42,3 @@ function getRootDB(){
return $uDB;
}
function newMailObj(){
$mailType = '_tK_mailType_';
$mailSubType = '_tK_mailSubType_';
$checkAuth = _mailCheckAuth_;//boolean
$host = '_tK_mailHost_';
$user = '_tK_mailUser_';
$password = '_tK_mailPassword_';
$address = '_tK_mailAddress_';
$nickname = '_tK_mailNickname_';
$port = _tK_mailPort_;//number
$ignoreCert = _tK_mailIgnoreCert_;//boolean
if($mailType == 'smtp'){
$objMail = new PHPMailer();
$objMail->isSMTP();
$objMail->setFrom($address);
$objMail->Hostname = $host;
$objMail->FromName = $nickname;
$objMail->Port = $port;
if($checkAuth){
$objMail->SMTPAuth = true;
$objMail->Username = $user;
$objMail->Password = $password;
}
if($ignoreCert){
$objMail->SMTPOptions = array (
'ssl' => array(
'verify_peer' => false,
'allow_self_signed' => true
)
);
}
if($mailSubType == 'tls'){
$objMail->SMTPSecure = 'tls';
}
else if($mailSubType == 'ssl'){
$objMail->SMTPSecure = 'ssl';
}
return $objMail;
}
else if($mailType == 'mail'){
throw new BadMethodCallException('Not Implemented');
}
else if($mailType == 'google'){
throw new BadMethodCallException('Not Implemented');
}
else{
throw new InvalidArgumentException('Invalid Mail Type');
}
}