[On-Rev] sending email thru sendmail?!

Sarah Reichelt sarah.reichelt at gmail.com
Wed Mar 3 17:13:54 EST 2010


> Did anyone here is able to send email using sendmail in On-Rev, my code that
> I use everywhere is not working anymore, somehow it can't open the sendmail
> process.
>
> function sendMail pFrom, pTo, pSubject, pBody
>
>  switch the platform
>  case "Linux"
>    put "/usr/sbin/sendmail -t" into mprocess
>    open process mprocess for write
>    write "From:" && pFrom & crlf to process mprocess
>    write "To:" &&   pTo  &  crlf to process mprocess
>    write "Subject:" &&  pSubject  &  crlf & crlf to process mprocess
>    write   pBody &  crlf to process mprocess
>    close process mprocess
>    wait until mprocess is not among the lines of the openprocesses
>    return the result
>    break
>
>  end switch
>
> end sendMail


I'm using mail, not sendmail directly and I'm on the odin server and
it's working fine there.
You can test it out & see my scripts at
<http://www.troz.net/onrev/samples/form.irev>.
I got the mail routines from splash21's site originally.

Cheers,
Sarah



More information about the use-livecode mailing list