HighDots Forums  

Output From Webserver to E-mail

alt.html alt.html


Discuss Output From Webserver to E-mail in the alt.html forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Geoff Schultz
 
Posts: n/a

Default Output From Webserver to E-mail - 06-14-2008 , 09:53 AM






My web site allows me e-mail blogs to it from my boat via high frequency
radio. I don't have Internet access from the boat. These logs include
position data which appears as a google map on the web site. For an
example, please see
http://www.geoffschultz.org/Log_Page.php?id=1128

I also have an e-mail list server to which I e-mail plain text versions of
my blogs. It would be very nice if I could instead e-mail the html output
of the web server blog page.

I have a perl script which processes the incoming e-mail and creates the
sql database entry with blog. What I don't know how to do is to take the
output of the Apache web server and redirect that to a mail message to my
list server.

I hope this makes sense. Any ideas?

-- Geoff
www.GeoffSchultz.org

Reply With Quote
  #2  
Old   
mynameisnobodyodyssea@googlemail.com
 
Posts: n/a

Default Re: Output From Webserver to E-mail - 06-14-2008 , 12:29 PM






I suppose you know that you can get the
content as string of a URL by using something like
the WWW::Mechanize Perl module,
I do not know if this answers your question.


Geoff Schultz wrote:
Quote:
My web site allows me e-mail blogs to it from my boat via high frequency
radio. I don't have Internet access from the boat. These logs include
position data which appears as a google map on the web site. For an
example, please see
http://www.geoffschultz.org/Log_Page.php?id=1128

I also have an e-mail list server to which I e-mail plain text versions of
my blogs. It would be very nice if I could instead e-mail the html output
of the web server blog page.

I have a perl script which processes the incoming e-mail and creates the
sql database entry with blog. What I don't know how to do is to take the
output of the Apache web server and redirect that to a mail message to my
list server.

I hope this makes sense. Any ideas?

-- Geoff
www.GeoffSchultz.org

Reply With Quote
  #3  
Old   
viza
 
Posts: n/a

Default Re: Output From Webserver to E-mail - 06-15-2008 , 06:47 AM



On Sat, 14 Jun 2008 09:53:55 -0500, Geoff Schultz wrote:

Quote:
My web site allows me e-mail blogs to it from my boat via high frequency
radio.
Cool! but not relevant.

Quote:
I also have an e-mail list server to which I e-mail plain text versions
of my blogs. It would be very nice if I could instead e-mail the html
output of the web server blog page.

I have a perl script which processes the incoming e-mail and creates the
sql database entry with blog. What I don't know how to do is to take
the output of the Apache web server and redirect that to a mail message
to my list server.
Write a shell script to get the latest page and mail it to the list.

I would use bash, wget, and sendmail. I would then call the script from
a cron job (storing the last page read in a configuration file), or even
better call it from the incoming email script.

HTH
viza


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.