The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

sponsor message in autorepsoner

Discussion in 'General Discussion' started by i-creations, Feb 8, 2004.

  1. i-creations

    i-creations Member

    Joined:
    Aug 30, 2003
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Hi there

    I dont know if this is possible of not, but is there any way to have a system where I can add a sponsored message to my autorepsonders - the autoresponder if for mobile phone useage so no html.

    Ideally, I would like it that a sponsors message is displayed x amount of times then after that a new sponsors message is included.

    Any advice would be great

    thanks
     
  2. bamasbest

    bamasbest Well-Known Member

    Joined:
    Jan 10, 2004
    Messages:
    531
    Likes Received:
    0
    Trophy Points:
    16
    One way to go could be to pipe the inbound message to a script, parse it, execute whatever code needed to ascertain the Message of the Moment and then send the message.
     
  3. i-creations

    i-creations Member

    Joined:
    Aug 30, 2003
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    I was thinking along that line too but as i dont have much experience, not sure how to do.

    any pointers?
    thanks for your reply

    tok
    japan
     
  4. hostultra

    hostultra Well-Known Member

    Joined:
    Aug 21, 2002
    Messages:
    167
    Likes Received:
    0
    Trophy Points:
    16
    piping to a script is very easy
    Just create forwarder to
    |/path/to/script

    your script should look like

    #!/usr/bin/perl

    {
    local($/);
    undef($/);
    $email = <STDIN>;
    }

    $email will be the contents of the email including all headers.
     
  5. bamasbest

    bamasbest Well-Known Member

    Joined:
    Jan 10, 2004
    Messages:
    531
    Likes Received:
    0
    Trophy Points:
    16
    That'll slurp up the message.

    As well, you can always use a php/mysql solution. If you donwload the support-logic helpdesk script, they have a pretty nice pipe script that can provide you with a good idea as to how to accomplish this.

    Ooops: http://www.support-logic.com
     
Loading...

Share This Page