Mailing List Archive



Back to the month index Back to the list index

Fernando Maior (fmaior@upol.com.br)
Tue, 6 Apr 1999 15:02:21 +0100


Message-ID: <000001be809c$c3b316e0$910bf5c8@estacao2>
From: "Fernando Maior" <fmaior@upol.com.br>
Subject: Re: Lite + sendmail together: howto?
Date: Tue, 6 Apr 1999 15:02:21 +0100

Bambi,

Thanks for the hint.

I did receive the original message, but then I was
messed up with something like 200+ messages (I was
out for a few days) and I trashed (hope my using
of this verb is correct) it out. Two days later,
I was in need for that message. Looks like Mr.
Murphy won again, isn't it :-)

And what you wrote is what I need! (WYWIWIN -
Shoul I pronounce "Why we win"? :-)

Anyway, thank you!

Bye
Fernando Maior

-----Mensagem original-----
De: David J. Hughes <bambi@Hughes.com.au>
Para: Fernando Maior <fmaior@upol.com.br>
Cc: Multiple recipients of list <msql-list@services.bunyip.com>
Data: Quinta-feira, 1 de Abril de 1999 05:15
Assunto: Re: Lite + sendmail together: howto?

>
>On Wed, 31 Mar 1999, Fernando Maior wrote:
>
>> I just want a way to send mail from within my
>> Lite program. I do not intend to use W3-mSQL
>> because it is a batch program, called by
>> old cron :-)
>
>
>From a message I sent to the list a few days ago ......
>
>
>On Wed, 24 Mar 1999, Mitch Evans wrote:
>
>> I was looking for a module or capability that allows me
>> to send email from within a lite program, running in W3-msql.
>> If it doesn't exist, it's a small enough programming challenge
>> that I may create it myself and make it a dynamic module.
>
>All you have to do is something like
>
> $fd = open("/usr/sbin/sendmail -finfo@foo.com.au
foo@baa.com",">|");
> fprintf($fd,"To: foo@baa.com\n");
> fprintf($fd,"From: info@foo.com.au\n");
> fprintf($fd,"Subject: Your mail message\n");
> fprintf($fd,"\n");
> fprintf($fd,"Text of your message\n");
> close($fd);
>
>Note the \n on a line by itself to signify the end of the mail message
headers.
>You'll get a message being sent from info@foo.com.au to to foo@baa.com.
>
>
>Bambi
>...
>
>