Add ability to register custom mail drivers

This commit is contained in:
Kijin Sung 2016-04-26 09:31:32 +09:00
parent fedc7efc59
commit 7303d3b2aa
2 changed files with 32 additions and 15 deletions

View file

@ -33,13 +33,13 @@ class Mail extends Rhymix\Framework\Mail
*/
public static function useSMTP($auth = null, $host = null, $user = null, $pass = null, $secure = null, $port = 25)
{
self::$default_transport = Rhymix\Framework\Drivers\Mail\SMTP::getInstance(array(
self::setDefaultDriver(Rhymix\Framework\Drivers\Mail\SMTP::getInstance(array(
'host' => $host,
'port' => $port,
'secure' => $secure,
'user' => $user,
'pass' => $pass,
));
)));
}
/**