mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
Add ability to register custom mail drivers
This commit is contained in:
parent
fedc7efc59
commit
7303d3b2aa
2 changed files with 32 additions and 15 deletions
|
|
@ -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,
|
||||
));
|
||||
)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue