hi all can someone tell me what is the php code to send an email?
Heres a function for u:
function sendmail($from,$to,$subject,$message) { $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/plain; charset=iso-8859-1\r\n"; $headers .= "From:".$from."\n"; mail($to,$subject,$message,$headers); }
I would suggest reading the manual about the mail() function.