freelanceprogrammers.org Forum Index » Perl

a perl program to collect mails


View user's profile Post To page top
kaan_e Posted: Fri Mar 01, 2002 1:01 am


Joined: 01 Mar 2002

Posts: 6
a perl program to collect mails
hi all...<br>i want to redirect my email account
to a perl program and store the mails in a file. i
think the method uses STDIN or something like that (i
really dont know). please, can someone help me with
this? (collecting mails with the perl program)... i can
do the rest... thanks...
Reply with quote
Send private message
View user's profile Post To page top
webmaster_bmw Posted: Fri Mar 01, 2002 5:50 pm


Joined: 18 Feb 2002

Posts: 7
a perl program to collect mails
Depends where your mail account is and what type (SMTP or POP3)<br><br>Have a
look at the various MAIL:: modules, and POP3Client<br><br>Greg
Reply with quote
Send private message
View user's profile Post To page top
kaan_e Posted: Fri Mar 01, 2002 7:43 pm


Joined: 01 Mar 2002

Posts: 6
a perl program to collect mails
my mail account is a Yahoo! Mail... and i must
tell that i can not install modules to the server
because i dont own my server, i use the free ones. is
there a way without installing any modules? can you
give me some links if you know? thanks a lot...
Reply with quote
Send private message
View user's profile Post To page top
webmaster_bmw Posted: Fri Mar 01, 2002 11:13 pm


Joined: 18 Feb 2002

Posts: 7
a perl program to collect mails
Sorry. No idea, then. <br><br>If you are using a
free server, are you sure you can run Perl scripts on
it?<br><br>My advice - get a proper hosting account with e-mail
and perl/cgi capabilities, otherwise forget it - you
won`t be able to do what you want to do.
Reply with quote
Send private message
View user's profile Post To page top
rand_mcneely Posted: Sat Mar 02, 2002 2:25 am


Joined: 06 Feb 2002

Posts: 5
a perl program to collect mails
It`s really not too bad, the POP3 protocol is
very simple (turn on POP logging on Outlook Express to
see the details or look at the spec).<br><br>All you
need to do it open a socket to pop.mail.yahoo.com:110
and send the correct messages according to the POP3
spec. Event if your server doesn`t have the POP3
modules, they must have socket IO modules (I can`t
remember the specific module as I haven`t done serious
Perl in a while but I am sure it is part of every
distribution).
Reply with quote
Send private message
View user's profile Post To page top
kaan_e Posted: Sat Mar 02, 2002 9:11 pm


Joined: 01 Mar 2002

Posts: 6
a perl program to collect mails
thanks but your suggestion is about getting mails from the server. i want the
program to run when a new mail comes, i mean i want the mails go directly to the
perl program...
Reply with quote
Send private message
View user's profile Post To page top
kaan_e Posted: Sat Mar 02, 2002 9:12 pm


Joined: 01 Mar 2002

Posts: 6
a perl program to collect mails
i found free serves supporting perl...<br>anyway, which host company do you
suggest? a proper hosting....
Reply with quote
Send private message
View user's profile Post To page top
rand_mcneely Posted: Sat Mar 02, 2002 11:12 pm


Joined: 06 Feb 2002

Posts: 5
a perl program to collect mails
You mean you want the SMTP mail server to let
your script know when a message has arrived (SMTP
servers are responsible for recieving mail, POP3 gives
mail to a client such as OE)?? Can`t do it (unless you
can talk Yahoo into letting you modify their SMTP
server code - very unlikely).<br><br>Perhaps you need to
spend some time with the various popular protocols such
as FTP, POP3, SMTP and HTTP and understand how the
architecture works.<br><br>Why don`t you just write your own
SMTP server (which is what you really talking about).
The only problem is that SMTP servers listen on TCP
port 25 and I seriously doubt you`ll find a free
hosting company that will allow you to bind to a port
under 1024 if they allow you to bind to any port at
all.<br><br>What exactly are you hoping to achieve?
Reply with quote
Send private message
View user's profile Post To page top
kaan_e Posted: Mon Mar 04, 2002 4:28 pm


Joined: 01 Mar 2002

Posts: 6
a perl program to collect mails
thanks man.<br>i want to manage my site by mail.
i mean i want to add new pages by sending a mail.
of course i will assign commands in my program,
which is easy. but the problem is now to take new
mails... actually redirecting mails to my program... see?
Reply with quote
Send private message
View user's profile Post To page top
rand_mcneely Posted: Mon Mar 04, 2002 6:57 pm


Joined: 06 Feb 2002

Posts: 5
a perl program to collect mails
Okay, that`s simple. Set up a yahoo account for
your site admin, write a script that every hour
connect to pop.mail.yahoo.com:110 and downloads mail and
then updates your site. That is the only way you can
do it without owning your own server.<br><br>You
program simply needs to behave like a mail client. I
understand that what you really want is it to behave like a
smtp server but you can`t do it with a free hosting
service.
Reply with quote
Send private message
View user's profile Post To page top
kaan_e Posted: Mon Mar 04, 2002 10:39 pm


Joined: 01 Mar 2002

Posts: 6
a perl program to collect mails
i see. i think there is something i
misunderstand! because the page i took that idea doesnt tell
anything about smtp, i mean it doesnt tells that the
program will act like an smtp server, it will just take
the data (mails) from STDIN. well, you can go and
take a look at the page:
<a href=http://chumpsquad.com/erik/gm/rgmp/rgmp.html
target=new>http://chumpsquad.com/erik/gm/rgmp/rgmp.html</a> i will be happy if
you look and tell something...
thanks...
Reply with quote
Send private message
View user's profile Post To page top
rand_mcneely Posted: Wed Mar 06, 2002 9:32 am


Joined: 06 Feb 2002

Posts: 5
a perl program to collect mails
I`m sorry.. you`re too confused to help. You need to go back and learn some of
the fundamentals.
Reply with quote
Send private message
Post new topic Reply to topic
Display posts from previous:   
 

All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
China Wholesale - Electronics Products
Character Studio - Tutorials and Help