[1/4] from: chris::starforge::demon::co::uk at: 15-Feb-2001 14:23
Hi, I have found a hoster that provides more or less everything I need - generous bandwidth, majodomo list server, multiple user accounts and more. My rebol scripts work fine there but they do not allow smtp - if I want to send email from a cgi script I have to invoke /usr/sbin/sendmail! Is there any way I can do this from /core? I very much doubt it, and if not I will be mightily miffed... :/ Chris -- New sig in the works Explorer2260 Designer and Coder http://www.starforge.co.uk
[2/4] from: gjones05:mail:orion at: 15-Feb-2001 10:16
Hi, Chris, I am just pondering out loud and am not really answering your question, so ... First, at the risk of demonstrating my ignorance, I believe that sendmail runs as a daemon, meaning that it always runs. Some (many) hosting services do not allow a continuously running program. If I demonstrated my ignorance, and sendmail can be run as needed, then maybe a bash version of the rebol batch file generator will work. I believe Doug Vos programmed the script for starting a Windows batch file. I would imagine the same concept would work for bash (csh, tclsh or whatever). It's just a thought hardly worth the *paper* it was written on. Finally, what I suspect will be the solution you would need if you stick with the "hoster" that you have chosen, is to forward the mail to an alternative smtp server. Some (many) do not allow for the "from" domain name to be different than the accounts for which the smtp is configured (ie, avoids some spam sources). If not helpful, then toss this in the bit bin with the rest of my posts! :-) --Scott
[3/4] from: chris:starforge at: 15-Feb-2001 17:41
#15-Feb-01# Message from *GS Jones*: Hi GS,
> I am just pondering out loud and am not really answering your question, so > ...
> If I demonstrated my ignorance, and sendmail can be run as needed,
AFAIK it can run in both modes. The hoster I'm interested in expects you to call it when needed.
> Finally, what I suspect will be the solution you would need if you stick > with the "hoster" that you have chosen, is to forward the mail to an > alternative smtp server. Some (many) do not allow for the "from" domain > name to be different than the accounts for which the smtp is configured > (ie, avoids some spam sources).
I may try sending a mail with the from: set to my demon address using demon's smtp, but I don't hold much hope of it working. If it fails another idea I had - I have *no* idea if this will work: I write a perl cgi script that takes a recipient address and a filename from the query string. It loads the filename from the server and invokes sendmail with the required recipient and the file in the body. When its done it returns a block of text indicating the status of the operation. In rebol I do something like result: read http://www.starforge.co.uk/cgi-bin/emailscript.cgi?...etc.. and then use the contents of result to tell whether the email was sent or not.. I don't know whether chaining cgi scripts like this will work, but I'll probably give it a shot once I learn enough perl to try it! :) Chris -- New sig in the works Explorer 2260, Designer and Coder http://www.starforge.co.uk -- Take my word for it, the silliest woman can manage a clever man, but it needs a very clever woman to manage a fool. -- Kipling
[4/4] from: g:santilli:tiscalinet:it at: 16-Feb-2001 11:50
Hello Chris! On 15-Feb-01, you wrote: C> from a cgi script I have to invoke /usr/sbin/sendmail! Is C> there any way I can do this from /core? I very much doubt it, C> and if not I will be mightily miffed... :/ Being that a Unix system, you could write a shell script that invokes sendmail and REBOL. I won't call this elegant, but it is effective as a last resort. Regards, Gabriele. -- Gabriele Santilli <[giesse--writeme--com]> - Amigan - REBOL programmer Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/