OSDN Git Service

SMTP設定の分割
authorCake <cake_67@users.sourceforge.jp>
Wed, 7 Jul 2010 01:34:14 +0000 (10:34 +0900)
committerCake <cake_67@users.sourceforge.jp>
Wed, 7 Jul 2010 01:34:14 +0000 (10:34 +0900)
.gitignore
app/config/bootstrap.php
app/config/conf/config.php
app/config/conf/mail.php [new file with mode: 0644]

index dd5742f..e73bacb 100644 (file)
@@ -2,5 +2,6 @@
 app/tmp/*
 app/config/core.php
 app/config/database.php
+app/config/conf/mail.php
 app/webroot/media/*
 
index ae101f8..1021ef7 100644 (file)
@@ -44,6 +44,7 @@
 
 require_once ('init.php');
 require_once ('conf/config.php');
+require_once ('conf/mail.php');
 require_once ('conf/mobile.php');
 
 /* media plugin */
index 371e827..2efeeef 100644 (file)
@@ -4,41 +4,6 @@
  */
 
 /* 
- * 使用言語(Language)
- */
-// jpn:Japanese, en:English
-Configure::write('Config.language', 'jpn'); 
-
-/* メール送信設定 */
-// SMTP送信する
-Configure::write('Qdmailer.smtp', false);
-
-// SMTP設定
-// SMTP AUTH(認証が必要)
-Configure::write('Qdmailer.smtpServer', array(
-       'user' => 'username',
-       'pass' => 'password',
-       'host' => 'host',
-       'port' => 587,
-       'from' => 'from Address',
-       'protocol' => 'SMTP_AUTH',
-));
-// POP Before SMTP(送信前認証が必要)
-/*
-Configure::write('Qdmailer.smtpServer', array(
-       'user' => 'username',
-       'pass' => 'password',
-       'host' => 'host',
-       'port' => 587,
-       'from' => 'from Address',
-       'protocol'=>'POP_BEFORE',
-       'pop_host' =>'pop_host',
-       'pop_user' => 'pop_username',
-       'pop_pass'=> 'pop_password',
-));
-*/
-
-/* 
  * ユーザID/パスワード関連
  */
 // ユーザIDの文字数
@@ -51,3 +16,10 @@ Configure::write('User.Password.Length',
        array('min' => 4, 'max' => 12)
 );
 
+
+/* 
+ * 使用言語(Language)
+ */
+// jpn:Japanese, en:English
+Configure::write('Config.language', 'jpn'); 
+
diff --git a/app/config/conf/mail.php b/app/config/conf/mail.php
new file mode 100644 (file)
index 0000000..f0c03ab
--- /dev/null
@@ -0,0 +1,33 @@
+<?php
+/**
+ * メール送信設定
+ */
+
+// SMTP送信する
+Configure::write('Qdmailer.smtp', false);
+
+// SMTP設定
+// SMTP AUTH(認証が必要)
+Configure::write('Qdmailer.smtpServer', array(
+       'user' => 'username',
+       'pass' => 'password',
+       'host' => 'host',
+       'port' => 587,
+       'from' => 'from Address',
+       'protocol' => 'SMTP_AUTH',
+));
+// POP Before SMTP(送信前認証が必要)
+/*
+Configure::write('Qdmailer.smtpServer', array(
+       'user' => 'username',
+       'pass' => 'password',
+       'host' => 'host',
+       'port' => 587,
+       'from' => 'from Address',
+       'protocol'=>'POP_BEFORE',
+       'pop_host' =>'pop_host',
+       'pop_user' => 'pop_username',
+       'pop_pass'=> 'pop_password',
+));
+*/
+