473,739 Members | 7,912 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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
Jul 17 '05 #1
7 1733
Christopher Richards wrote:
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?


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 - sp**@koivi.com
http://www.koivi.com
Jul 17 '05 #2
In article <j8************ **@news7.onvoy. net>, Justin Koivisto wrote:
Christopher Richards wrote:
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?
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...


Although there are ppl in this group that don't like it, man procmail
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.


man fetchmail

--
Met vriendelijke groeten,
Tim Van Wassenhove <http://www.timvw.info>
Jul 17 '05 #3
Why does everyone always assume all servers are running linux?
:(


Tim Van Wassenhove wrote:
In article <j8************ **@news7.onvoy. net>, Justin Koivisto wrote:
Christopher Richards wrote:

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?


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...

Although there are ppl in this group that don't like it, man procmail

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.

man fetchmail

Jul 17 '05 #4
In article <41************ ***********@ptn-nntp-reader04.plus.n et>, neur0maniak wrote:
Why does everyone always assume all servers are running linux?

who mentionned linux?

procmail and fetchmail run under _many_ operating systems. even win32 :P
--
Met vriendelijke groeten,
Tim Van Wassenhove <http://www.timvw.info>
Jul 17 '05 #5
neur0maniak wrote:
Why does everyone always assume all servers are running linux?


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.
Jul 17 '05 #6
2metre wrote:
neur0maniak wrote:
Why does everyone always assume all servers are running linux?

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.


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

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:
neur0maniak wrote:
Why does everyone always assume all servers are running linux?

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.


Jul 17 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
2371
by: Marian | last post by:
Hi, I am totaly novice in .NET and I am studying a book about this. There was mentioned "assembly". I did not understand, how function does it has . I would like to know the exact run of code (intermediate language and so on). Is there any page on internet, which makes me clear? Thanx
2
2012
by: George | last post by:
Is this group for a novice C++ programmers?
21
2943
by: AES/newspost | last post by:
My understanding -- I'm not an expert -- is that on (some? many? all?) standard Internet servers a URL can point to a subdirectory name followed by a backslash, and that links to this URL will automatically go to an "index.html" file located in that subdirectory, if there is one. Q1: Is this more or less correct? At least some HTML texts also recommend using this as the basis for organizing a web site: Put the web pages associated...
6
3440
by: ronwer | last post by:
Hello, The title doesn't completely cover the question I have, but it's a bit more complicated problem we have. We are using a database, based on Acces, but developed by a third party developer who sells it under his own name. So, functionally it's a very specific database for a specific purpose. Now we want to make certain changes in this database, but for reasons of
3
1211
by: Cindi | last post by:
Hi there, When selecting a choice from the switchboard, what do I need to do so the new window opens in front of the switchboard rather than behind? Regards, Cindi
3
2238
by: herrcho | last post by:
Here is the code.. #define NAME "MEGATHINK, INC" #define ADDRESS "10 Megabuck Plaza" #define PLACE "Megapolis, CA 94904" int main() { starbar(); printf("%s\n",NAME);
2
2263
by: Dmitry Sazonov | last post by:
I'm novice here and I'm sorry for stupid question. We are trying to understand web services architecture, is it better than TIBCO.Randevouz and does webservices fit our needs. I understand, I can make web servce and a client applicaiton. Client will call the service and will receive some kind of responce. But can my client applicaiton receive EVENT from web service? Can I "subscribe" to, let say, "Clock" web service and web service...
1
3000
by: TwistedSpanner | last post by:
Hello all, For the record I am a complete java novice. I have to write a program to generate/output to screen 10 simple maths question and output a final score . The question is as follows Random number, Random operator (+ or -) random number. I have written the program but cannot make the random operator work. Can anyone help? My code.
9
3061
by: Kelii | last post by:
I've been trying to get this piece to work for a few hours, but have given up. I hope someone out there can help, I think the issue is relatively straightforward, but being a novice, I'm stumped. Below you will find the code I've written and the error that results. I'm hoping that someone can give me some direction as to what syntax or parameter is missing from the code that is expected by VBA. Overview: I'm trying to copy calculated...
0
8969
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9479
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9337
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8215
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6754
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6054
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4570
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4826
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2193
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.