Solved

Receiving e-mails

Posted on 1998-10-19
5
179 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 100 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In this tutorial I will show you how to provide a dynamic RTF document on your website generated with data from your database. For this tutorial you will need Microsoft Word or WordPad, WhizBase and Microsoft Access. In this tutorial I will show …
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
The viewer will learn how to count occurrences of each item in an array.

726 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