2017-07-24 16 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