Novice Question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Christopher Richards

    Novice Question

    It is possible to be able to receive email alerts (say, from Google News)
    and publish them to a web page automatically?

    I am a novice as far as PHP goes, but I can open and write to a file and
    close the file up again. The html page references the file and can format
    the plain text. So far I am OK ( I think ).

    I am not sure how I would automate, or get the content of the email, and
    output it to a file. Any thougths?
    Thank you.
    Christopher


  • Justin Koivisto

    #2
    Re: Novice Question

    Christopher Richards wrote:
    [color=blue]
    > It is possible to be able to receive email alerts (say, from Google News)
    > and publish them to a web page automatically?
    >
    > I am a novice as far as PHP goes, but I can open and write to a file and
    > close the file up again. The html page references the file and can format
    > the plain text. So far I am OK ( I think ).
    >
    > I am not sure how I would automate, or get the content of the email, and
    > output it to a file. Any thougths?[/color]

    If you can set up an alias in your mail server, you could pipe the
    message to a script (on that server) to insert the stuff into a database
    when a message reaches that address... I haven't played much with that,
    but I do have my mail server set up to transfer files with a certain
    name to another server when an email arrives at that address...

    Other than that, I'd assume you'll need some kind of cron script and
    have it check the mail, etc from the web server... You may be able to
    find some ideas of how to hanle the messages from some of the webmail
    apps around.

    --
    Justin Koivisto - spam@koivi.com

    Comment

    • Tim Van Wassenhove

      #3
      Re: Novice Question

      In article <j8Wbd.37$TM.10 51@news7.onvoy. net>, Justin Koivisto wrote:[color=blue]
      > Christopher Richards wrote:
      >[color=green]
      >> It is possible to be able to receive email alerts (say, from Google News)
      >> and publish them to a web page automatically?
      >>
      >> I am a novice as far as PHP goes, but I can open and write to a file and
      >> close the file up again. The html page references the file and can format
      >> the plain text. So far I am OK ( I think ).
      >>
      >> I am not sure how I would automate, or get the content of the email, and
      >> output it to a file. Any thougths?[/color]
      >
      > If you can set up an alias in your mail server, you could pipe the
      > message to a script (on that server) to insert the stuff into a database
      > when a message reaches that address... I haven't played much with that,
      > but I do have my mail server set up to transfer files with a certain
      > name to another server when an email arrives at that address...[/color]

      Although there are ppl in this group that don't like it, man procmail
      [color=blue]
      > Other than that, I'd assume you'll need some kind of cron script and
      > have it check the mail, etc from the web server... You may be able to
      > find some ideas of how to hanle the messages from some of the webmail
      > apps around.[/color]

      man fetchmail

      --
      Met vriendelijke groeten,
      Tim Van Wassenhove <http://www.timvw.info>

      Comment

      • neur0maniak

        #4
        Re: Novice Question

        Why does everyone always assume all servers are running linux?


        :(




        Tim Van Wassenhove wrote:[color=blue]
        > In article <j8Wbd.37$TM.10 51@news7.onvoy. net>, Justin Koivisto wrote:
        >[color=green]
        >>Christopher Richards wrote:
        >>
        >>[color=darkred]
        >>> It is possible to be able to receive email alerts (say, from Google News)
        >>>and publish them to a web page automatically?
        >>>
        >>>I am a novice as far as PHP goes, but I can open and write to a file and
        >>>close the file up again. The html page references the file and can format
        >>>the plain text. So far I am OK ( I think ).
        >>>
        >>>I am not sure how I would automate, or get the content of the email, and
        >>>output it to a file. Any thougths?[/color]
        >>
        >>If you can set up an alias in your mail server, you could pipe the
        >>message to a script (on that server) to insert the stuff into a database
        >>when a message reaches that address... I haven't played much with that,
        >>but I do have my mail server set up to transfer files with a certain
        >>name to another server when an email arrives at that address...[/color]
        >
        >
        > Although there are ppl in this group that don't like it, man procmail
        >
        >[color=green]
        >>Other than that, I'd assume you'll need some kind of cron script and
        >>have it check the mail, etc from the web server... You may be able to
        >>find some ideas of how to hanle the messages from some of the webmail
        >>apps around.[/color]
        >
        >
        > man fetchmail
        >[/color]

        Comment

        • Tim Van Wassenhove

          #5
          Re: Novice Question

          In article <41795d87$0$480 15$ed2e19e4@ptn-nntp-reader04.plus.n et>, neur0maniak wrote:[color=blue]
          > Why does everyone always assume all servers are running linux?[/color]


          who mentionned linux?

          procmail and fetchmail run under _many_ operating systems. even win32 :P


          --
          Met vriendelijke groeten,
          Tim Van Wassenhove <http://www.timvw.info>

          Comment

          • 2metre

            #6
            Re: Novice Question

            neur0maniak wrote:[color=blue]
            > Why does everyone always assume all servers are running linux?[/color]

            Because its a very sensible thing to do!

            1/ It's free
            2/ It's very secure
            3/ It's very fast
            4/ Running a GUI on a web server wastes processing cycles and memory.

            Comment

            • 2metre

              #7
              Re: Novice Question

              2metre wrote:[color=blue]
              > neur0maniak wrote:
              >[color=green]
              >> Why does everyone always assume all servers are running linux?[/color]
              >
              >
              > Because its a very sensible thing to do!
              >
              > 1/ It's free
              > 2/ It's very secure
              > 3/ It's very fast
              > 4/ Running a GUI on a web server wastes processing cycles and memory.[/color]

              PS. I can setup a linux server (including buying the computer and
              operating system) for less than the cost of a Windows software licence.

              Comment

              • neur0maniak

                #8
                Re: Novice Question


                I'm not saying I don't use linux (I'm an avid debian user)

                It just hits one of my nerves to see OS-specific help for a question
                that mentions no OS. I guess I'm just sensitive...


                2metre wrote:[color=blue]
                > neur0maniak wrote:
                >[color=green]
                >> Why does everyone always assume all servers are running linux?[/color]
                >
                >
                > Because its a very sensible thing to do!
                >
                > 1/ It's free
                > 2/ It's very secure
                > 3/ It's very fast
                > 4/ Running a GUI on a web server wastes processing cycles and memory.[/color]

                Comment

                Working...