아이디 생성 가능

This commit is contained in:
2018-01-20 05:35:11 +09:00
parent 9e3182bf2a
commit a39a1e8612
4 changed files with 15 additions and 8 deletions
+8 -2
View File
@@ -9,8 +9,8 @@ class _Mail {
public function __construct($host, $port, $id, $pw, $addr) {
$this->objMail = new PHPMailer();
$this->objMail->IsSMTP();
$this->objMail->SMTPAuth = true;
$this->objMail->SMTPSecure = 'ssl';
$this->objMail->SMTPAuth = false;
//$this->objMail->SMTPSecure = 'ssl';//TODO 제대로된 Mailer 옵션 설정
$this->objMail->Host = $host;
$this->objMail->Port = $port;
$this->objMail->Username = $id;
@@ -19,6 +19,12 @@ class _Mail {
$this->objMail->CharSet = 'utf-8';
$this->objMail->Encoding = 'base64';
$this->objMail->SetFrom($addr);
$this->objMail->SMTPOptions = array (
'ssl' => array(
'verify_peer' => false,
'allow_self_signed' => true
)
);
}
public function Send($to, $subject, $content) {