我想在codeigniter中配置我的邮件常量以使用本地主机。关于这些参数应该是什么的任何想法。我从演示链接得到了这个常数。提前致谢 常数:
define('EMAIL_FROM', 'xxxx@gmail.com'); // e.g. email@example.com
define('EMAIL_BCC', 'xxxx@gmail.com'); // e.g. email@example.com
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 :(得分:1)
define('EMAIL_FROM', 'xxxxx@gmail.com'); // e.g. email@example.com
define('EMAIL_BCC', 'xxxxx@gmail.com'); // e.g. email@example.com
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');