Solved

Receiving e-mails

Posted on 1998-10-19
5
163 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
5 Comments
 
LVL 7

Expert Comment

by:jconde
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

In this tutorial I will focus on how to use WhizBase as a tool for sending ICQ messages to ICQ. Here I will use a new technology in WhizBase, published in WhizBase 5.1 version. In this tutorial I will use 3 files, pager.wbsp for the processing, e…
It is becoming increasingly popular to have a front-page slider on a web site. Nearly every TV website,  magazine or online news has one on their site, and even some e-commerce sites have one. Today you can use sliders with Joomla, WordPress or …
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

762 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now