Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Aug 2003
    Posts
    5

    Default sponsor message in autorepsoner

    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. #2
    Member bamasbest's Avatar
    Join Date
    Jan 2004
    Posts
    531

    Default

    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. #3
    Member
    Join Date
    Aug 2003
    Posts
    5

    Default

    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. #4
    Member
    Join Date
    Aug 2002
    Posts
    170

    Default

    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.
    Host Ultra
    Quality Affordable Web Hosting

  5. #5
    Member bamasbest's Avatar
    Join Date
    Jan 2004
    Posts
    531

    Default

    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

Similar Threads & Tags
Similar threads

  1. Replies: 1
    Last Post: 10-13-2010, 05:43 PM
  2. Strange Message in /var/log/message
    By IRCBrasil in forum cPanel and WHM Discussions
    Replies: 12
    Last Post: 01-31-2007, 04:05 AM
  3. Email :fail: message not giving proper message
    By PWSowner in forum cPanel and WHM Discussions
    Replies: 14
    Last Post: 12-02-2004, 11:09 AM
  4. Replies: 2
    Last Post: 10-27-2003, 06:11 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube