summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--it_mail.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_mail.class b/it_mail.class
index ea31015..b0e20c7 100644
--- a/it_mail.class
+++ b/it_mail.class
@@ -408,7 +408,7 @@ function check_email($email, $checkmailbox = true)
asort($mx, SORT_NUMERIC);
$port = getservbyname('smtp', 'tcp');
- $from = 'itools@gna.ch';
+ $from = "itools@" . (($domain = it::match('[^.]*\.(.+)', getenv('ULTRAHOSTNAME') ? getenv('ULTRAHOSTNAME') : it::exec('hostname -f 2>/dev/null || hostname 2>/dev/null'))) ? $domain : "gna.ch");
/* Determine domain and email for test, skip if called as it_mail::check_email() */
if (is_object($this))