mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-30 15:52:17 +09:00
Add dummy driver and other transports supported by Advanced Mailer
This commit is contained in:
parent
0b20f3f5c7
commit
ebb1b2fd4a
6 changed files with 248 additions and 1 deletions
32
common/framework/drivers/mail/postmark.php
Normal file
32
common/framework/drivers/mail/postmark.php
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
<?php
|
||||
|
||||
namespace Rhymix\Framework\Drivers\Mail;
|
||||
|
||||
/**
|
||||
* The Postmark mail driver.
|
||||
*/
|
||||
class Postmark extends SMTP implements \Rhymix\Framework\Drivers\MailInterface
|
||||
{
|
||||
/**
|
||||
* Direct invocation of the constructor is not permitted.
|
||||
*/
|
||||
protected function __construct(array $config)
|
||||
{
|
||||
$config['smtp_host'] = 'smtp.postmarkapp.com';
|
||||
$config['smtp_port'] = 587;
|
||||
$config['smtp_security'] = 'tls';
|
||||
$config['smtp_user'] = $config['api_token'];
|
||||
$config['smtp_pass'] = $config['api_token'];
|
||||
parent::__construct($config);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the list of configuration fields required by this mail driver.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function getRequiredConfig()
|
||||
{
|
||||
return array('api_token');
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue