2017-07-24 37 views
1

我想在Codeigniter中配置我的郵件常量以使用本地主機。關於這個參數應該是什麼的任何想法。我從演示鏈接中獲得了這個常量。在此先感謝 常數:在codeigniter中配置我的郵件常量

define('EMAIL_FROM',       '[email protected]');  // e.g. [email protected] 
    define('EMAIL_BCC',        '[email protected]');  // e.g. [email protected] 
    define('FROM_NAME',        'XXX '); // Your system name 
    define('EMAIL_PASS',       'Your email password'); // Your email password 
    define('PROTOCOL',        'smtp');    // mail, sendmail, smtp 
    define('SMTP_HOST',        'smtp.gmail.com');  // your smtp host e.g. smtp.gmail.com 
    define('SMTP_PORT',        '25');     // your smtp port e.g. 25, 587 
    define('SMTP_USER',        'Your smtp user');  // your smtp user 
    define('SMTP_PASS',        'Your smtp password'); // your smtp password 
    define('MAIL_PATH',        '/usr/sbin/sendmail'); 
+0

參考文獻:https://www.codeigniter.com/user_guide/libraries/email.html – LogicBlower

回答

1
define('EMAIL_FROM',       '[email protected]');  // e.g. [email protected] 
define('EMAIL_BCC',        '[email protected]');  // e.g. [email protected] 
define('FROM_NAME',        'xxxx'); // Your system name 
define('EMAIL_PASS',       ''); // Your email password 
define('PROTOCOL',        'sendmail');    // mail, sendmail, smtp 
define('SMTP_HOST',        '');  // your smtp host e.g. smtp.gmail.com 
define('SMTP_PORT',        '');     // your smtp port e.g. 25, 587 
define('SMTP_USER',        '');  // your smtp user 
define('SMTP_PASS',        ''); // your smtp password 
define('MAIL_PATH',        '/usr/sbin/sendmail'); 

參考Password Reset in codeigniter