summaryrefslogtreecommitdiff
path: root/it_mail.class
diff options
context:
space:
mode:
authorUrban Müller2009-02-17 14:57:36 +0000
committerUrban Müller2009-02-17 14:57:36 +0000
commitddc6c74bd050334537808c2418d2246055716562 (patch)
treebb0acf73b3268e660acfd757f68308f253e45e68 /it_mail.class
parentbe11fa008570326ca0ba76152cda1720934c3070 (diff)
downloaditools-ddc6c74bd050334537808c2418d2246055716562.tar.gz
itools-ddc6c74bd050334537808c2418d2246055716562.tar.bz2
itools-ddc6c74bd050334537808c2418d2246055716562.zip
send no mails from devel/twin, treat missing severtype.cfg as live
Diffstat (limited to 'it_mail.class')
-rw-r--r--it_mail.class3
1 files changed, 2 insertions, 1 deletions
diff --git a/it_mail.class b/it_mail.class
index 0eb7643..0995e49 100644
--- a/it_mail.class
+++ b/it_mail.class
@@ -32,6 +32,7 @@ define('IT_MAIL_CHECKEMAIL_OK', 10);
/**
* Construct an email message with headers, body (plaintext and/or HTML) and
* send it. Also provides utility function to check email address validity.<br>
+ * On devel/twin machines, will output mail instead of sending it.<br>
* <em>Example:</em><br>
* <code><nobr>
* if (!it_mail::check_email($to))<br>
@@ -285,7 +286,7 @@ function send()
$text .= "--$boundary1--\n";
}
- $func = EDC('nomail') ? "ED" : "mail";
+ $func = it::is_live() ? "mail" : "ED";
return $func($to, $this->header_escape($this->subject), $text, join("\n", $headers), $this->flags);
}