Solved

Receiving e-mails

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

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

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

Batch, VBS, and scripts in general are incredibly useful for repetitive tasks.  Some tasks can take a while to complete and it can be annoying to check back only to discover that your script finished 5 minutes ago.  Some scripts may complete nearly …
In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
The viewer will learn how to count occurrences of each item in an array.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

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