Results 1 to 9 of 9
I am not sure if this is the right forum to port this or not but here goes.
I have a web / email server that I only have Cpanel ...
- 10-23-2008 #1Just Joined!
- Join Date
- Oct 2008
- Posts
- 5
Processing emails
I am not sure if this is the right forum to port this or not but here goes.
I have a web / email server that I only have Cpanel access to. I can up load perl scripts to and setup jobs on, but no command line access.
The issue I am having is that I am getting emails on the server to a specific email address. The emails have an HTML link in them to a web server. I need a way to read the email and parse out the link in the email and "get" the address in the email so the registration is completed and log the transaction them delete the email and the file from the "get" command. I would like to do this on the email server but I can setup a dedicated machine to do this if need be.
This Is not for Spamming. It is to register my customers with the national do not call list. I have the first step automated but the second step of clicking on the link in the email that is sent from the do not call server is what I need help on.
I am very strong windows / dos guy. and can stumble around linux
I have setup basic linux servers and pc but nothing advanced.
ANY HELP WOULD BE GREATLY APPRECIATED
Thanks
- 10-24-2008 #2Linux Newbie
- Join Date
- Jul 2008
- Posts
- 181
I don't really understand what you are trying to do, but if you have the ability to install arbitrary perl scripts, then you can, of course, read your email (from a spool file, mailbox, or via POP) and process it in an arbitrary manner. On the other hand, it is unlikely that anyone here will do the work for you.
Last edited by burschik; 10-24-2008 at 08:22 AM. Reason: typo
- 10-24-2008 #3Just Joined!
- Join Date
- Oct 2008
- Posts
- 5
Not asking for anyone to do this for me. I just want to know if it is do able through a perl script or something of that nature and if anyone could point me to some scripting examples. I have no idea where to start.
- 10-27-2008 #4Linux Newbie
- Join Date
- Jul 2008
- Posts
- 181
Of course it is possible, but you do not even specify how you intend to access the emails. Therefore, it is impossible to point you towards the required packages, or scripting examples.
- 10-27-2008 #5Just Joined!
- Join Date
- Oct 2008
- Posts
- 5
The emails are in a mailbox on the server. I am not sure how to access them. that is the first problem.
- 10-28-2008 #6Linux Newbie
- Join Date
- Jul 2008
- Posts
- 181
Define "mailbox". Do you mean a file in your home directory, with a name like "mbox"? Or do you mean a POP account?
- 10-28-2008 #7Just Joined!
- Join Date
- Oct 2008
- Posts
- 5
It would be a POP account
- 10-29-2008 #8Linux Newbie
- Join Date
- Jul 2008
- Posts
- 181
In that case, look here: Net::POP3 - Post Office Protocol 3 Client class (RFC1939) - search.cpan.org
- 10-29-2008 #9Just Joined!
- Join Date
- Oct 2008
- Posts
- 5
Thank you, That is a great start.


Reply With Quote