아이디 생성 가능
This commit is contained in:
+1
-1
@@ -7,5 +7,5 @@ localhost
|
||||
25
|
||||
test
|
||||
letmein
|
||||
@localhost
|
||||
test@localhost
|
||||
*/
|
||||
|
||||
@@ -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) {
|
||||
|
||||
+2
-1
@@ -12,8 +12,9 @@ function Replace(url) {
|
||||
}
|
||||
|
||||
function ReplaceFrame(url) {
|
||||
//window.top.location.replace(url);
|
||||
console.log('top',url);
|
||||
window.top.location.replace(url);
|
||||
|
||||
}
|
||||
|
||||
function ImportStyle(href) {
|
||||
|
||||
@@ -32,10 +32,10 @@ if($err == 1) {
|
||||
$DB->Delete('EMAIL', "EMAIL='{$email}'");
|
||||
}
|
||||
$DB->InsertArray('EMAIL', array(
|
||||
EMAIL => $email,
|
||||
CODE => $code,
|
||||
VERIFIED=> 0,
|
||||
REG_DATE=> _Time::DatetimeNow()
|
||||
'EMAIL' => $email,
|
||||
'CODE' => $code,
|
||||
'VERIFIED'=> 0,
|
||||
'REG_DATE'=> _Time::DatetimeNow()
|
||||
));
|
||||
|
||||
$response['result'] = 'SUCCESS';
|
||||
|
||||
Reference in New Issue
Block a user