Your IP : 216.73.216.40


Current Path : /var/www/html/mmishra/csi/
Upload File :
Current File : /var/www/html/mmishra/csi/mailcircular2.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 = "Seminar by CSI, Allahabad Chapter - Invitation";
        $mail->WordWrap = 75;

	$mail->AddAttachment("invitation.pdf","invitation.pdf");
	$mail->AddAttachment("NB_India_Event_Allahabad.pdf","NB_India_Event_Allahabad.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 announces<br>
	<center>
One Day Seminar on<br><br>
<b>Norbert Wiener, Cybernetics, Humanity & Technology</b><br><br>
Organized by<br>
Computer Society of India<br>
CSI Allahabad Chapter<br>
CSI Div.II [Software]<br>
IEEE Computer Society India Council<br><br>

In Association with<br><br>
'Technical Committee 9 (TC9) ICT and Society'<br><br>
on<br>
<b>Sunday, 9 March 2014</b><br><br>
Venue<br>
IIIT Allahabad, Devghat, Jhalwa, Allahabad-211012
</center>
</p>
Active participation of all the members of CSI Allahabad Chapter is highly solicited.<br> 
For further details see the attached broucher.
<p>With thanks and regards,<br><br>
<b>
Organizing Team<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";
?>