SCOUG Logo


Next Meeting: Sat, TBD
Meeting Directions


Be a Member
Join SCOUG

Navigation:


Help with Searching

20 Most Recent Documents
Search Archives
Index by date, title, author, category.


Features:

Mr. Know-It-All
Ink
Download!










SCOUG:

Home

Email Lists

SIGs (Internet, General Interest, Programming, Network, more..)

Online Chats

Business

Past Presentations

Credits

Submissions

Contact SCOUG

Copyright SCOUG



warp expowest
Pictures from Sept. 1999

The views expressed in articles on this site are those of their authors.

warptech
SCOUG was there!


Copyright 1998-2024, Southern California OS/2 User Group. ALL RIGHTS RESERVED.

SCOUG, Warp Expo West, and Warpfest are trademarks of the Southern California OS/2 User Group. OS/2, Workplace Shell, and IBM are registered trademarks of International Business Machines Corporation. All other trademarks remain the property of their respective owners.

The Southern California OS/2 User Group
USA

SCOUG-Programming Mailing List Archives

Return to [ 25 | September | 2000 ]

<< Previous Message << >> Next Message >>


Date: Mon, 25 Sep 2000 11:41:03 PDT
From: Terry Warren <twarren@alumni.caltech.edu >
Reply-To: scoug-programming@scoug.com
To: scoug-programming@scoug.com
Subject: SCOUG-Programming: SMTP handshaking ?

Content Type: text/plain

At 11:21 PM 9/24/2000 -0700, you wrote:
>I'm writing an email client utility. So far my code does the DNS lookup
>on the mail server domain name and then opens a socket to the server on
>port 109. (I presume that's the proper port - I looked in
>\mptn\etc\services and found it. There's also port 25 but I seem to
>remember that's not the proper one.)

there is a different protocol for sending email and for receiving email. To
receive, if you're talking to a POP3 server, you would use port 110; to
send, via SMTP you would use port 25. For receiving, the commands most
frequently used are:

USER userid
PASS password

these must go first to establish a valid connection to the server.

QUIT

is used at the end to terminate the connection.

In between you can use commands such as:
LIST
STAT
UIDL n
RETR n
DELE n

LIST gives a list of messages and sizes
STAT returns how many messages are on the server
UIDL n fetches the header info for message number n
RETR n fetches message number n
DELE n deletes message number n

>RFC 821 doesn't have the handshaking sequence I need. Can anyone point
>me at the document that tells the handshake sequence for asking if
>there's any mail waiting on the server? I assume there are USER and
>PASSword messages involved, maybe HELO and RSET, plus a command that
>queries the status of the user's mailbox.
>
>Thanks,
>
>- Peter
>
>=====================================================
>
>To unsubscribe from this list, send an email message
>to "steward@scoug.com". In the body of the message,
>put the command "unsubscribe scoug-programming".
>
>For problems, contact the list owner at
>"rollin@scoug.com".
>
>=====================================================

_____NetZero Free Internet Access and Email______
http://www.netzero.net/download/index.html

=====================================================

To unsubscribe from this list, send an email message
to "steward@scoug.com". In the body of the message,
put the command "unsubscribe scoug-programming".

For problems, contact the list owner at
"rollin@scoug.com".

=====================================================


<< Previous Message << >> Next Message >>

Return to [ 25 | September | 2000 ]



The Southern California OS/2 User Group
P.O. Box 26904
Santa Ana, CA 92799-6904, USA

Copyright 2001 the Southern California OS/2 User Group. ALL RIGHTS RESERVED.

SCOUG, Warp Expo West, and Warpfest are trademarks of the Southern California OS/2 User Group. OS/2, Workplace Shell, and IBM are registered trademarks of International Business Machines Corporation. All other trademarks remain the property of their respective owners.