westdc-zf1/application/models/WestdcMailer.php

17 lines
405 B
PHP

<?php
class WestdcMailer extends Zend_Mail {
private $tr; //smtp class
function __construct($smtp){
$this->tr=new Zend_Mail_Transport_Smtp($smtp->host,
array('ssl' => $smtp->ssl,
'auth'=>$smtp->auth,
'port'=> $smtp->port,
'username'=>$smtp->username,
'password'=>$smtp->password));
parent::__construct('utf-8');
}
function send()
{
return parent::send($this->tr);
}
}