westdc-zf1/application/models/WestdcMailer.php

16 lines
371 B
PHP
Raw Normal View History

2009-03-06 03:20:46 +00:00
<?php
class WestdcMailer extends Zend_Mail {
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,
'username'=>$smtp->username,
'password'=>$smtp->password));
parent::__construct('utf-8');
}
function send()
{
parent::send($this->tr);
}
}