You are here

function og_msgid_server in Organic groups 5.7

Same name and namespace in other branches
  1. 5.8 og.module \og_msgid_server()
  2. 5 og.module \og_msgid_server()
  3. 5.2 og.module \og_msgid_server()
  4. 5.3 og.module \og_msgid_server()
  5. 6.2 og.module \og_msgid_server()
  6. 6 og.module \og_msgid_server()
1 call to og_msgid_server()
og_mail in ./og.module
Send this node/comment via email to all email members. Called from og_nodeapi() and og_comment(). Sometimes called from during cron if job_queue.module is enabled (recommended). TODO: this function is a bit messy. rethink.

File

./og.module, line 1479

Code

function og_msgid_server() {
  global $base_url;
  if ($dir = str_replace("/", ".", substr(strchr(str_replace("http://", "", $base_url), "/"), 1))) {
    $at = "@{$dir}." . $_SERVER['SERVER_NAME'];
  }
  else {
    $at = '@' . $_SERVER['SERVER_NAME'];
  }
  return strtolower($at);
}