?
Solved

Receiving e-mails

Posted on 1998-10-19
5
Medium Priority
?
182 Views
Last Modified: 2013-12-25
hi,
I was interested in learning how to receive an e-mail. Though I know how to send one.

For example my domain name is
websource.cjb.net
how do i receive an e-mail if some one sends an e-mail@

aseem@websource.cjb.net!

Thanks
Aseem
0
Comment
Question by:aseem072898
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 7

Expert Comment

by:jconde
ID: 1829172
Hi!
There are a 2 ways you can accomplish it!

You can search for a free email retriever cgi script or you can do it the hard way...develope your own!

In order to develope your own, you will need to establish a TCP/IP connection to your incomming POP server trough port 110 (usually) and send the USER and PASS commands.

If you're novice to cgi or to sockets programming, the first option is definiteley your bet.  I can't tell you what free web mail cgi's exist, but I downloaded and installed successfully one some time ago.

Hope I helped a bit :)

Jorge
0
 

Author Comment

by:aseem072898
ID: 1829173
Hi,

I don't know anything about CGI. So can you please tell me from were can I find a FREE e-mail retriver.

Regards,
Aseem
0
 
LVL 5

Expert Comment

by:thoellri
ID: 1829174
If you don't know anything about CGI, why do you post your question in the CGI area then?

Puzzled
  Tobias

0
 

Author Comment

by:aseem072898
ID: 1829175
I meant that I don't know how to program CGIs but I know what all they can do!
0
 
LVL 1

Accepted Solution

by:
flivauda earned 200 total points
ID: 1829176
if you have access to lwp on your machine the following code will retrive pop3 mail:

#!/usr/bin/perl

use Net::POP3;

$pop = Net::POP3->new($mail_server) or die "Cant open connection to $mail_server $!\n";
$pop->login($username, $password) or die "Cant authenticate: $!\n";
$messages = $pop->list or die "Cant get list of messages: $!\n";

foreach $msgid (keys %$messages)
{
  $message = $pop->get($msgid);
  unless (defined $message)
  {
    warn "Couldnt fetch $msgid from server: $!\n";
    next ;
  }
  pop->delete($msgid);
}
0

Featured Post

Stressed Out?

Watch some penguins on the livecam!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently I have been answering a lot of questions like this in IT forums that I frequent. The question posed is usually something along the lines of "We have software X installed and need to uninstall it for reason Y" or some other variant of the sa…
I hope you'll find this tutorial useful and interesting. So let's try to extend Tcl with a new package.  For anyone more deeply interested please check out the book "Practical Programming in Tcl and Tk". It's really one of the best written books abo…
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question