Solved

Receiving e-mails

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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

Suggested Solutions

Introduction This tutorial will give you a fast look what you can do with WhizBase. I expect you already know how to work with HTML at least, and that you understand the basics of the internet and how the internet works. WhizBase is a server-s…
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 …
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

739 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