Created
March 23, 2012 04:45
-
-
Save ojimac/2166881 to your computer and use it in GitHub Desktop.
QdmailComponentのsmtp送信対応コード
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function startup(&$controller) { | |
$this->Controller =& $controller; | |
if( defined( 'COMPONENTS' ) ){ | |
$this->logPath(COMPONENTS); | |
$this->errorlogPath(COMPONENTS); | |
} | |
$params = array( | |
'host' => 'メールサーバー名', | |
'port' => 587 , // または25 | |
'from' => 'fromメールアドレス', | |
'protocol' => 'SMTP_AUTH', | |
'user' => 'ユーザー名', | |
'pass' => 'パスワード', | |
); | |
$this->smtp(true); | |
$this->smtpServer($params); | |
return; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment