Ummm, you both might want to take a look at: http://www.php.net/manual/en/function.mail.php as well as: http://www.php.net/manual/en/ref.mail.php
Rick, you can't specify the mail program in any of the arguments for the mail() command. Kevin, I bet your problem is in your php.ini script. Make sure sendmail_path is configured correctly for your server - notice that SMTP only has to be identified for Win32 installations. You must set sendmail_path correctly for this to work on *n[iu]x systems. And for future reference, since there was no database content in the question, php-general would have been a better place for the question. Rick Emery wrote: > It should look like: > > $email = "/bin/sendmail"; > $to = "[EMAIL PROTECTED]"; > $subj = "A test message"; > $body = "This is the body of the message"; > $hdr = "Reply-to: [EMAIL PROTECTED]"; > mail ($email, $to, $subj, $body, $hdr); In response to Kevin's question: >>> I have been unable to get the mail() function to work. >>> >>> my php.ini file has the following line in it: >>> SMTP = mail.attbi.com -- _______ ___ _ ____ _____ Chris Hobbs / ____\ \ / / | | |/ ___\| __ \ Head Geek | (___ \ \ / /| | | | (___ | | | | WebMaster \___ \ \ \/ / | | | |\___ \| | | | PostMaster ____) | \ / | |__| |____) | |__| | \____/ \/ \____/ \____/|_____/ http://www.silvervalley.k12.ca.us [EMAIL PROTECTED] -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]