From: | Neil Bothwick |
Date: | 1 Feb 2000 at 09:50:55 |
Subject: | Re: aml.library |
From: "Neil Bothwick" <neil@wire.net.uk>
Thomas Hurst said,
> A simple mailer might look like this:
> /* bool = SendMail(to,from,subject,body,server[:port]) */
> SendMail: PROCEDURE
> to=arg(1);from=arg(2);subject=arg(3);body=arg(4);server=arg(5);sent=0;CRLF='d
> parse var server server':'port
> if port=='' then port=23
Shouldn't that be 25?
> do
> call send(sock,body)
> call send(sock,CRLF||'.'||CRLF)
> sent=1
> end
You should also do some sort of check for CR'.'CR within body, replacing
it with CR'..'CR.
Neil
--------------------------- ONElist Sponsor ----------------------------
GET A NEXTCARD VISA, in 30 seconds. Get rates as low as 0.0 percent
Intro APR and no hidden fees. Apply NOW.
<a href=" http://clickme.onelist.com/ad/NextcardCreativeCL ">Click Here</a>
------------------------------------------------------------------------
ARexx mailing list - No flames, no overquoting, no crossposting. Unsubscribe: Blank mail to mailto:arexx-unsubscribe@onelist.com