[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trivial SMTP client



> > What about just writing the information to a text file, then doing
> > something like cat'ing that file to telnet hostname port25?
> >
> > I assume you have cat and telnet in your distro?
> >
> 
> I would be pretty gob-smacked if this worked !!
> 
> Regrettably, the 'everything works like a file' model of *NIX does not work
> in a network environment.  Telneting to port 25 just gives me a TCP pipe
> between self and the server.  However, the server is kind of expecting me to
> follow the SMTP protocol when transferring my mail - just sending it a
> stream of data will not do.  RFC821 refers.

(Re-inventing the wheel) You could do the 'telnet' trick with 'expect'.  
But 'telnet' + 'expect' + 'tcl' + ... would not be a "small" SMTP client.

David S.