I know nothing much about tcl/tk, but if it can execute a shell command, it could perhaps use the mail command.
It seems pretty primitive to have to reinvent the smtp wheel in your script. On Tue, 02 Mar 2004 16:19:05 +1300 Hans Raj <[EMAIL PROTECTED]> wrote: > hi Carey > > Carey Evans wrote: > > Some servers will fail though, especially ones with anti-spam > > configurations, if you just send all the lines one after another without > > stopping to read the server's responses. > > Actually I tried to read the servers response after sending each line, but the > "gets $s_ptr" command just hangs. (I do get a response to HELO, and but not after > other commands). Any thoughts on this? > > > Actually, the lines you're > > sending are not quite correct either. > > Which ones? > > > > > Why not use the "smtp" package from Tcllib to do it properly? > > > > http://www.tcl.tk/software/tcllib/ > > I'm using the TCL shell in a Communications testset, and it doesnt have the > required packages/libraries installed. It offers just basic functionality. > > The reason I dint try to make the code very robust is that this email-capablity > is not a critical (or even a nescessary) part of the script. Just put it in to > let me know the status of a test-script if run over the weekend. However, I > would be grateful for any suggestions/tips. > > Thanks, > Hans -- Nick Rout <[EMAIL PROTECTED]>
