PageRenderTime 9ms CodeModel.GetById 2ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 1ms

/framework/experimental/mail/Mailer.php

http://zoop.googlecode.com/
PHP | 25 lines | 23 code | 2 blank | 0 comment | 3 complexity | c77010337069743184bd4880b4862c5b MD5 | raw file
 1<?php
 2class Mailer extends PHPMailer
 3{
 4	function Mailer()
 5	{
 6		$this->PluginDir = zoop_dir . '/phpmailer/';
 7		$this->SetLanguage('en', zoop_dir . '/phpmailer/languages/');
 8		
 9		if(mail_method == 'smtp')
10		{
11			$this->IsSMTP();
12			$this->Host = mail_smtp_host;  
13			$this->SMTPAuth = mail_smtp_auth_use;
14			if(mail_smtp_auth_use)
15			{
16				$this->Username = mail_smtp_auth_username;
17				$this->Password = mail_smtp_auth_password;
18			}
19		}
20		else
21			assert(false);
22		
23		$this->CharSet = 'UTF-8';
24	}
25}