I was wondering how these protocals work. I know that smtp sends
mail for
your system. Does it also recieve mail or is that the pop3. That
Pop3 stands for Post offfice protocol and Smtp Simple mail Transport Protoc Basiclly in a standard home user system you receive mail via pop3 and send SMTP. Sometimes you can recive mail via SMTP if
your ISP alllow's it but the drawback is
you get everything dumped in your mail box using smtp if you want it or not where as POP3 has the caplebility to recevie messages from the server, keep
hrm, yep. Let me try it this way. SMTP recieves mail
on port 25 and also sends mail on port 25. When it
recieves the mail does it store it in a file format upon
the server? Or, tempary store it until it is -->
Sorry, I have this source code for a smtp & pop3 server
and want to figure out the code. I just want to use the
smtp to dump the mail it recieves to a file for convertion
hrm, yep. Let me try it this way. SMTP recieves mail on port 25
and also
sends mail on port 25. When it recieves the mail does it store it
in a file
hrm, yep. Let me try it this way. SMTP recieves mail on port 25
and also sends mail on port 25. When it recieves the mail does it
store it in a file format upon the server? Or, tempary store it
until it is --> To sort of answer my own question. It passes it
off to the pop3 server. Now, does that store it in a file on the
server. Or it doesn't store it at all and just passes it off to
the pop3 server and that does it. Sorry, I have this source code
for a smtp & pop3 server and want to figure out the code.
I just
want to use the smtp to dump the mail it recieves to a file for
convertion to NetMail format but I am not sure if I am able to do
that. The code is in oop(slash delphi-1)(slash tpascal 7)(slahs visualpascal) in which I am not that good with *yet* and tring to
figure out what is going on with the code is having my head spin.
I haven't been able to look at it for a couple of months. Well,
since I postted the question. (alot of stuff sided track'd me).
Anyhow, since then I have found a few sites that example just what
you told me, but not the internal workings and was hoping someone
could fill me in.
Bye <=-
Smtp and pop3 both work over a telnet connection (like zmodem ususally
the answer is maybe... is it one program or two (or three...)?two programs.
works over a dialup connection), the messages are transferred as plain tex after some passwording and other setup etc...Looking into it. My libary doesn't have a unix manual on hand, but think I wil shop arond online for one. Don't think Barnes and Noble (local book store) might have one even though they got just about everything else.. hrm, were talking about like 85$+ for the book? right. ugh...
The telnet code is complex but for the most psart can be ignored (it won't need any modification) the interesting stuff will be where the smtp code is.
if you want details try a unix manual entry get a book (google should find you a few). or get a book.
This is where it stores the message. I think.(** StoreMessage **)
* Copied from: PASCAL_LESSONS
|15Quoting Message From |10Jasen Betts |15to |10Chris Hoppman
|15On |1009 Nov 02 06:43:43.
if you want details try a unix manual entry get a book (google should
find you a few). or get a book.
Looking into it. My libary doesn't have a unix manual on hand, but think
PROCEDURE TSMTPServer.cmdData(VAR Message: TaslMessage);-->> IF StoreMessage(FSender, FRecipients, FMessage) THEN
BEGIN
IF FSender='' THEN
CliSocket.WriteLn('503 Must send MAIL FROM: first')
ELSE
IF FRecipients.Count=0 THEN
CliSocket.WriteLn('503 Must send RCPT TO: first')
ELSE
BEGIN
CliSocket.WriteLn('354 Send mail; end with <CRLF>.<CRLF>');
GetMsgLines(FMessage);
BEGIN
CliSocket.WriteLn('250 OK');
(* Should I do the text write here?
Also, FSender is in TString form. Can use you that
almost like a accual string to write to a text or
fsender[1],fsender[2],etc. *)
This is where it stores the message. I think.(** StoreMessage **)
FUNCTION StoreMessage(ASender: String; ARecipiants, AMessage: TStringList):
Boolean; VIRTUAL; ABSTRACT;
I look'd around all the units and this is the only thing I found.
It was never defined in the IMPLANTION<sp> part of the unit. I see
that it is a boolean type, but does virtual and abstract effect it?
I know I sound lame, but I am a newbie at oop.
TStringList is a link list of string, but how do you write it to a file.
ah ha.. maybe
Procedure WriteStoreMessage(ASender: String; ARecipiants, AMessage: TstringList);
type
Message = Record
Sender : String;
Recipiants : ????;
Message : ????;
end;
var email:Message;
emaildat: file of email;
begin
email.sender:=Asender;
email.Recipiants:=ARecipiants;
email.Message:=AMessage;
assign(emaildat,'email.dat');
rewrite(email);
seek(email,0);
write(emaildat,email);
close(emaildat);
end.
Bye <=-
Message = Record
Sender : String;
Recipiants : ????;
Message : ????;
???? - I've never seen that beast before.
end;
var email:Message;
Sysop: | digital man |
---|---|
Location: | Riverside County, California |
Users: | 1,033 |
Nodes: | 17 (1 / 16) |
Uptime: | 19:57:40 |
Calls: | 503,596 |
Calls today: | 10 |
Files: | 136,333 |
D/L today: |
8,867 files (3,856M bytes) |
Messages: | 443,495 |
Posted today: | 1 |