1. 复制config.default.php为config.php

2. 修改一下内容

define('MAIL_TRANSPORT', 'smtp');
define('MAIL_SMTP_HOSTNAME', 'mail.smtp.co.za');       // YOUR SMTP HOST NAME
define('MAIL_SMTP_PORT', 25); // CHOOSE THE CORRECT SMTP PORT (DEFAULT 25)
define('MAIL_SMTP_USERNAME', 'admin@domain.com'); // YOUR EMAIL ADDRESS
define('MAIL_SMTP_PASSWORD', 'enterYourEmailPassword'); // YOUR EMAIL PASSWORD
define('MAIL_SMTP_ENCRYPTION', 'tls'); // Valid values are "null", "ssl" or "tls"