Location: PHPKode > scripts > Mail > example.php
<?php
require_once('mail.inc.php');
$to = array(
				'0'=> array('name' => 'Raj Trivedi','email' => 'hide@address.com'),
				'1'=> array('name' => 'Raj Trivedi','email' => 'hide@address.com'),
				'2'=> array('name' => 'Shweta Agrawal','email' => 'hide@address.com')
			);
$cc = array(
				'0'=> array('name' => 'Raj Trivedi','email' => 'hide@address.com'),
				'1'=> array('name' => 'Raj Trivedi','email' => 'hide@address.com'),
				'2'=> array('name' => 'Shweta Agrawal','email' => 'hide@address.com')
			);
$bcc = array(
				'0'=> array('name' => 'Raj Trivedi','email' => 'hide@address.com'),
				'1'=> array('name' => 'Raj Trivedi','email' => 'hide@address.com'),
				'2'=> array('name' => 'Shweta Agrawal','email' => 'hide@address.com')
			);
$read = array(
				'0'=> array('name' => 'Raj Trivedi','email' => 'hide@address.com'),
			);
$reply = array(
				'0'=> array('name' => 'Raj Trivedi','email' => 'hide@address.com'),
			);

$sender = 'hide@address.com';
$senderName = 'Raj Trivedi';
$subject = 'This is an test mail';
$message = '<html>
			<head>
			  <title>Birthday Reminders for August</title>
			</head>
			<body>
			  <p>Here are the birthdays upcoming in August!</p>
			  <table>
				<tr>
				  <th>Person</th><th>Day</th><th>Month</th><th>Year</th>
				</tr>
				<tr>
				  <td>Joe</td><td>3rd</td><td>August</td><td>1970</td>
				</tr>
				<tr>
				  <td>Sally</td><td>17th</td><td>August</td><td>1973</td>
				</tr>
			  </table>
			</body>
			</html>';

$obj = new sendMail($to, $sender, $subject, $message, $cc, $bcc,$senderName, $read, true, $reply, true);
echo $obj->sendEmail();
?>
Return current item: Mail