- 2,281
i am an experienced perl programmer but a beginner with PHP, but i know the basics....
i need to send the contents of a submitted form to an email address...
in perl this would be done by parsing the name/value and then opening sendmail on a unix server....
open (MAIL, "|/usr/lib/sendmail -t") like that
in php, parsing is no problem but how do you actually send the body of the email, and how does php know the path to sendmail coz in the books i've read it seems to automatically know where this is....how?
code for sending the subject, sender, cc and body would be very much appreciated....the body of an email would be plain text but upto 500 characters..
cheers guys....
i need to send the contents of a submitted form to an email address...
in perl this would be done by parsing the name/value and then opening sendmail on a unix server....
open (MAIL, "|/usr/lib/sendmail -t") like that
in php, parsing is no problem but how do you actually send the body of the email, and how does php know the path to sendmail coz in the books i've read it seems to automatically know where this is....how?
code for sending the subject, sender, cc and body would be very much appreciated....the body of an email would be plain text but upto 500 characters..
cheers guys....