* Set the delivery receipt of the email. This should be an email address that the receipt should be sent to. * You are NOT guaranteed to receive this receipt - it is dependent on the receiver. */ $mail->setReceipt('*****@*****.**'); /** * Add an embedded image. The path is the file path to the image. */ //$mail->addEmbeddedImage(new fileEmbeddedImage('/home/emmgts/public_html/images/logo.gif')); //$mail->addEmbeddedImage(new fileEmbeddedImage('4.jpg')); /** * Add an attachment to the email. */ //$mail->addAttachment(new fileAttachment('')); /** * Send the email. Pass the method an array of recipients. */ //$address = '*****@*****.**'; $i = 1002; while ($i != 1700) { $result = $cafe_details->getCafeRegDetail($i); $rs_row = mysql_fetch_array($result); echo $rs_row['cafeemailid'] . '</br>'; if ($rs_row['cafeemailid']) { $result_mail = $mail->send(array($rs_row['cafeemailid'])); } var_dump($result_mail); $i++; } ?>