//Sending Email from PHP /* recipients */ $recipient .= "Mary " . ", " ; //note the comma $recipient .= "Kelly " . ", "; $recipient .= "ronabop@php.net"; /* subject */ $subject = "Birthday Reminders for August"; /* message */ $message .= "The following email includes a formatted ASCII table\n"; $message .= "Day \t\tMonth \t\tYear\n"; $message .= "3rd \t\tAug \t\t1970\n"; $message .= "17rd\t\tAug \t\t1973\n"; /* you can add a stock signature */ $message .= "--\r\n"; //Signature delimiter $message .= "Birthday reminder copylefted by public domain"; /* additional header pieces for errors, From cc's, bcc's, etc */ $headers .= "From: Birthday Reminder \n"; $headers .= "X-Sender: \n"; $headers .= "X-Mailer: PHP\n"; // mailer $headers .= "X-Priority: 1\n"; // Urgent message! $headers .= "Return-Path: \n"; // Return path for errors /* If you want to send html mail, uncomment the following line */ // $headers .= "Content-Type: text/html; charset=iso-8859-1\n"; // Mime type $headers .= "cc:birthdayarchive@php.net\n"; // CC to $headers .= "bcc:birthdaycheck@php.net, birthdaygifts@php.net\n"; // BCCs to /* and now mail it */ mail($recipient, $subject, $message, $headers);