2009-03-06 03:20:46 +00:00
|
|
|
<?php
|
|
|
|
class WestdcMailer extends Zend_Mail {
|
2009-03-13 02:41:26 +00:00
|
|
|
private $tr; //smtp class
|
|
|
|
function __construct($smtp){
|
2009-03-06 03:20:46 +00:00
|
|
|
$this->tr=new Zend_Mail_Transport_Smtp($smtp->host,
|
|
|
|
array('ssl' => $smtp->ssl,
|
|
|
|
'auth'=>$smtp->auth,
|
2018-07-20 07:31:49 +00:00
|
|
|
'port'=> $smtp->port,
|
2009-03-06 03:20:46 +00:00
|
|
|
'username'=>$smtp->username,
|
|
|
|
'password'=>$smtp->password));
|
|
|
|
parent::__construct('utf-8');
|
|
|
|
}
|
|
|
|
function send()
|
|
|
|
{
|
2011-10-12 13:33:32 +00:00
|
|
|
return parent::send($this->tr);
|
2009-03-06 03:20:46 +00:00
|
|
|
}
|
|
|
|
}
|