메일 전송 기능 삭제. 나중에 필요하면 다시 추가하기로.
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user