Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Server Contact's Pager Address:

Discussion in 'General Discussion' started by erapid, Mar 12, 2002.

  1. erapid

    erapid Member

    Joined:
    Oct 18, 2001
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    301
    My pager provider has following format for &pager mail&:

    To: &their address&
    Subject: &pager number&
    --------------------------------

    Is it possible to use WHM function to send a message on a pager in my case?

    Eugene
     
  2. erapid

    erapid Member

    Joined:
    Oct 18, 2001
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    301
    send to pager via subject question

    Ok, I will ask in another way

    Is it possible to add &Subject& field above &Server Contact's Pager Address:&?
     
  3. erapid

    erapid Member

    Joined:
    Oct 18, 2001
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    301
    How to send pager message to another email

    First, thanks for support :)

    Second, If it's intresting for somebody - there is solution

    assuming that domain is somename.com

    - create email box message@somename.com
    - put the next string in the /etc/valiases/somename.com file
    message@somename.com: &| /home/somename/pager.php&

    pager.php looks like

    #!/usr/bin/php -q
    &&??
    ?
    $fp1=fopen(&/home/somename/pager.log&,&a&);
    fputs($fp1,&Loaded\n&);
    $fp = fopen(&php://stdin&,&r&);
    $s = &&;
    while( substr($s,0,1)!=&\n& && !feof($fp) )
    {
    $s=fgets($fp,160);
    }
    $mess=&&;
    while(!feof($fp))
    {
    $s=fgets($fp,160);
    $mess.=$s;
    }
    fputs($fp1,$mess);
    fclose($fp);
    if (strlen($mess)&0)
    {
    if ( mail(&pager@real.address.com&,&123456&,$mess,&From: message@somename.com\nReply-To: message@somename.com&) )
    fputs($fp1,&\nSended\n&);
    }
    fclose($fp1);
    ?&
     
  4. erapid

    erapid Member

    Joined:
    Oct 18, 2001
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    301
    How to send pager message to another email

    First, thanks for support :)

    Second, If it's intresting for somebody - there is solution

    assuming that domain is somename.com

    - create email box message@somename.com
    - put the next string in the /etc/valiases/somename.com file
    message@somename.com: &| /home/somename/pager.php&

    pager.php looks like

    #!/usr/bin/php -q
    &&??
    ?
    $fp1=fopen(&/home/somename/pager.log&,&a&);
    fputs($fp1,&Loaded\n&);
    $fp = fopen(&php://stdin&,&r&);
    $s = &&;
    while( substr($s,0,1)!=&\n& && !feof($fp) )
    {
    $s=fgets($fp,160);
    }
    $mess=&&;
    while(!feof($fp))
    {
    $s=fgets($fp,160);
    $mess.=$s;
    }
    fputs($fp1,$mess);
    fclose($fp);
    if (strlen($mess)&0)
    {
    if ( mail(&pager@real.address.com&,&123456&,$mess,&From: message@somename.com\nReply-To: message@somename.com&) )
    fputs($fp1,&\nSended\n&);
    }
    fclose($fp1);
    ?&
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice