아이디 생성 가능
This commit is contained in:
+1
-1
@@ -7,5 +7,5 @@ localhost
|
|||||||
25
|
25
|
||||||
test
|
test
|
||||||
letmein
|
letmein
|
||||||
@localhost
|
test@localhost
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -9,8 +9,8 @@ class _Mail {
|
|||||||
public function __construct($host, $port, $id, $pw, $addr) {
|
public function __construct($host, $port, $id, $pw, $addr) {
|
||||||
$this->objMail = new PHPMailer();
|
$this->objMail = new PHPMailer();
|
||||||
$this->objMail->IsSMTP();
|
$this->objMail->IsSMTP();
|
||||||
$this->objMail->SMTPAuth = true;
|
$this->objMail->SMTPAuth = false;
|
||||||
$this->objMail->SMTPSecure = 'ssl';
|
//$this->objMail->SMTPSecure = 'ssl';//TODO 제대로된 Mailer 옵션 설정
|
||||||
$this->objMail->Host = $host;
|
$this->objMail->Host = $host;
|
||||||
$this->objMail->Port = $port;
|
$this->objMail->Port = $port;
|
||||||
$this->objMail->Username = $id;
|
$this->objMail->Username = $id;
|
||||||
@@ -19,6 +19,12 @@ class _Mail {
|
|||||||
$this->objMail->CharSet = 'utf-8';
|
$this->objMail->CharSet = 'utf-8';
|
||||||
$this->objMail->Encoding = 'base64';
|
$this->objMail->Encoding = 'base64';
|
||||||
$this->objMail->SetFrom($addr);
|
$this->objMail->SetFrom($addr);
|
||||||
|
$this->objMail->SMTPOptions = array (
|
||||||
|
'ssl' => array(
|
||||||
|
'verify_peer' => false,
|
||||||
|
'allow_self_signed' => true
|
||||||
|
)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function Send($to, $subject, $content) {
|
public function Send($to, $subject, $content) {
|
||||||
|
|||||||
+2
-1
@@ -12,8 +12,9 @@ function Replace(url) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function ReplaceFrame(url) {
|
function ReplaceFrame(url) {
|
||||||
//window.top.location.replace(url);
|
|
||||||
console.log('top',url);
|
console.log('top',url);
|
||||||
|
window.top.location.replace(url);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function ImportStyle(href) {
|
function ImportStyle(href) {
|
||||||
|
|||||||
@@ -32,10 +32,10 @@ if($err == 1) {
|
|||||||
$DB->Delete('EMAIL', "EMAIL='{$email}'");
|
$DB->Delete('EMAIL', "EMAIL='{$email}'");
|
||||||
}
|
}
|
||||||
$DB->InsertArray('EMAIL', array(
|
$DB->InsertArray('EMAIL', array(
|
||||||
EMAIL => $email,
|
'EMAIL' => $email,
|
||||||
CODE => $code,
|
'CODE' => $code,
|
||||||
VERIFIED=> 0,
|
'VERIFIED'=> 0,
|
||||||
REG_DATE=> _Time::DatetimeNow()
|
'REG_DATE'=> _Time::DatetimeNow()
|
||||||
));
|
));
|
||||||
|
|
||||||
$response['result'] = 'SUCCESS';
|
$response['result'] = 'SUCCESS';
|
||||||
|
|||||||
Reference in New Issue
Block a user