diff options
| author | Urban Müller | 2011-11-22 16:39:06 +0000 | 
|---|---|---|
| committer | Urban Müller | 2011-11-22 16:39:06 +0000 | 
| commit | 6f0cd1a4a442f9c27dd07f0e956f5253f378465d (patch) | |
| tree | 2abc47b5d3024da58d908744cb3dad275eb67c4b /it_mail.class | |
| parent | 326f0dad5c9bebe408595a453d92194cd4eb932e (diff) | |
| download | itools-6f0cd1a4a442f9c27dd07f0e956f5253f378465d.tar.gz itools-6f0cd1a4a442f9c27dd07f0e956f5253f378465d.tar.bz2 itools-6f0cd1a4a442f9c27dd07f0e956f5253f378465d.zip  | |
support sending of mails on twin/devel
Diffstat (limited to 'it_mail.class')
| -rw-r--r-- | it_mail.class | 5 | 
1 files changed, 3 insertions, 2 deletions
diff --git a/it_mail.class b/it_mail.class index dafd704..81c9a67 100644 --- a/it_mail.class +++ b/it_mail.class @@ -179,9 +179,10 @@ function add_file($filename, $mimetype = "application/octet-stream", $name = '')  /**   * Send this email message + * @param $p['forcemail'] Send mail even if on twin or devel machine   * @return True if mail was accepted for delivery   */ -function send() +function send($p = array())  {  	$to = join(",", $this->to);  	$headers = array(); @@ -286,7 +287,7 @@ function send()  		$text .= "--$boundary1--\n";  	} -	if (it::is_live() || EDC('forcemail')) +	if (it::is_live() || EDC('forcemail') || $p['forcemail'])  	{  		if (($result = mail($to, $this->header_escape($this->subject), $text, join("\n", $headers), $this->flags)) === false)  			it::error(array('title' => "failed sending mail to $to subject $this->subject", 'body' => D($text, $headers, $this->flags)));  |