| Current Path : /var/www/html/mmishra/csi/ |
| Current File : /var/www/html/mmishra/csi/mailcircular1.php |
<?php
require("classes/class.phpmailer.php");
$con = mysql_connect("localhost", "root", "alld@uprtou");
mysql_select_db("csi", $con);
$i = 0;
//$rs = mysql_query("select * from Members limit 0,1", $con);
$rs = mysql_query("select * from Members order by EmailID", $con);
while ($o = mysql_fetch_object($rs)) {
$i++;
$mail = new PHPMailer();
$mail->IsHTML(true); // telling the class to use HML format
$mail->IsSMTP(); // telling the class to use SMTP
$mail->Host = "172.31.1.27"; // SMTP server
$mail->FromName = "CSI Allahabad Chapter";
//$mail->From = "csialld@rediffmail.com";
$mail->From = "mmishra@iiita.ac.in";
//$mail->AddAddress("mmishra@iiita.ac.in","MMishra");
$mail->AddAddress($o->EmailID,$o->FullName);
$mail->AddCC("csialld@rediffmail.com","CSI Allahabad Chapter");
$mail->Username = "mybp";
$mail->Password = "mybillpower";
$mail->Subject = "Young IT Professional Award-2013 by CSI, Allahabad Chapter";
$mail->WordWrap = 75;
$mail->AddAttachment("YITP-2013-poster.pdf","YITP-2013-poster.pdf");
$mail->AddAttachment("nomination-invitation-mailer.pdf","nomination-invitation-mailer.pdf");
$mail->Body = "
<b>To-<dir>
$o->FullName ($o->MemberCode)<br>
$o->Address<br>
$o->City - $o->PinCode<br>
</dir></b>
Dear Sir/Madam,<br>
<p>With immense pleasure, CSI Allahabad Chapter invites nominations for <b>Young IT Professional Award-2013</b> under following categories from any individual or a team of max. 3 members below 35 years of age (on 31st March, 2013), who are either working professionals, entrepreneurs or researchers and has made significant innovation in the areas of research, academics, IT applications and services to bring improvement in service, support and training in the field of Information Technology. Last date for nomination is <b>10 Feb, 2014</b>.
</p>
<p>
Active participation of all the members of CSI Allahabad Chapter is highly solicited.<br>
For further details, please see the attached brouchers.
<p>With thanks and regards,<br><br>
<b>
Organizing Team (YITP-2013)<br>
CSI Allahabad Chapter<br>
Allahabad
</b></p>";
if (!$mail->Send()) {
echo $mail->ErrorInfo . $o->EmailID;
} else {
echo TRUE;
}
}
echo $i.")".$mail->Body."\n\n";
?>