[On-Rev] sending email thru sendmail?!

Andre Garzia andre at andregarzia.com
Wed Mar 3 08:55:39 EST 2010


Aloha Folks,

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

-- 
http://www.andregarzia.com All We Do Is Code.



More information about the use-livecode mailing list