http://www.jobberbase.com/
Thursday, January 20, 2011
Php mail function not working with godaddy.com
function emailHtml($from, $subject, $message, $to) {
$host = "localhost";
$username = "";
$password = "";
$headers = array ('MIME-Version' => "1.0", 'Content-type' => "text/html; charset=iso-8859-1;", 'From' => $from, 'To' => $to, 'Subject' => $subject);
$smtp = Mail::factory('smtp', array ('host' => $host, 'auth' => false));
$mail = $smtp->send($to, $headers, $message);
if (PEAR::isError($mail))
return 0;
else
return 1;
}
$host = "localhost";
$username = "";
$password = "";
$headers = array ('MIME-Version' => "1.0", 'Content-type' => "text/html; charset=iso-8859-1;", 'From' => $from, 'To' => $to, 'Subject' => $subject);
$smtp = Mail::factory('smtp', array ('host' => $host, 'auth' => false));
$mail = $smtp->send($to, $headers, $message);
if (PEAR::isError($mail))
return 0;
else
return 1;
}
Monday, January 17, 2011
Tuesday, January 4, 2011
php mail with attachement.
EMAIL.PHP FILE
<?php
/**
* This class supports to send validate , add cc, add BCC, Add atachement and send emails in
* both format html as well as text
* @author Rahul
* @version $Id: Email.php rahul $
*/
class Email
{
/**
* @var string
* @access private
*/
private $subject;
/**
* @var string
* @access private
*/
private $sendername;
/**
* @var string
* @access private
*/
private $senderaddy;
/**
* @var string
* @access private
*/
private $message;
/**
* @var string
* @access private
*/
private $recipients;
/**
* @var string
* @access private
*/
private $CC_list;
/**
* @var string
* @access private
*/
private $BCC_list;
/**
* @var string
* @access private
*/
private $bounceMail;
/**
* @var array
* @access private
*/
private $attachments = array(); // filename(as attachment name),location(path+filename of attachment),mime-type
/**
* @var integer
* @access private
*/
private $ishtml = 0;
/**
* @var array
* @access private
*/
private $warnings = array();
/**
* @var array
* @access private
*/
private $action_msgs = array();
/**
* @var array
* @access private
*/
private $error_msgs = array();
/**
* open and read the attachement file
* use for class only
* @param string (filename)
* @return bool
* @access private
**/
private function getFile($filename)
{
if ($fp = fopen($filename, 'rb'))
{
$return = fread($fp, filesize($filename));
fclose($fp);
return $return;
} else
{
return FALSE;
}
}
/**
* Set the email subjcet
* @param string
* @return void
* @access public
**/
public function setSubject($msg)
{
if (strlen($msg) > 255)
{ // Limit subject line to 255 characters
$msg = substr($msg,0,255);
array_push($this->warnings,"Subject line was truncated to 255 characters.");
}
$this->subject = $msg;
array_push($this->action_msgs,"Subject line set to: " . $msg);
}
/**
* Set the sender email
* validate the name and email address
* This sets the "From:" field in the email message. The email string is limited to 255 characters.
* @param string --$name
* @param string -- addy (email address)
* @return void
* @access public
**/
public function setSender($name,$addy)
{
if (strlen($addy) > 255)
{ // Limit sender address to 255 characters
$array_push($this->error_msgs,"Sender email address too long. (255 char max)");
} else {
if (strlen($name) != 0)
{
$this->sendername = $name;
array_push($this->action_msgs,"Sender name set to: " . $name);
} else
{
array_push($this->action_msgs,"Sender name not set (empty field)");
}
if (strlen($addy) == 0)
{
array_push($this->error_msgs,"Sender email address too short or invalid");
} else
{ // validate email address here
if (!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $addy))
{
array_push($this->error_msgs,"Email address not correctly formatted");
}
else
{
array_push($this->action_msgs,"Email address format has been validated");
$this->senderaddy = $addy;
}
}
}
}
/**
*This sets the body of the email message.
* @param string
* @return void
* @access public
**/
public function setMessage($msg)
{
$this->message = $msg;
array_push($this->action_msgs,"Email message set");
}
/**
* This can be used to add multiple recipients to the "To:" field of the email message. The email string is limited to 255 character
* @param name - string
* @param addy(email)- string
* @return void
* @access public
**/
public function addRecipient($name,$addy)
{
if (strlen($addy) > 255)
{ // Limit sender address to 255 characters
$array_push($this->error_msgs,"Recipient email address too long. (255 char max) " . $addy);
}
else
{
if (strlen($name) == 0)
{
array_push($this->warnings,"No recipient name for " . $addy);
} else
{
$build_address = (strlen($name) != 0) ? $name . " " : "";
$build_address .= "<";
$build_address .= $addy;
$build_address .= ">";
if (count($this->recipients) > 1)
{
$this->recipients .= ", " . $build_address;
array_push($this->action_msgs,"Recipient added: " . $addy);
}
else
{
$this->recipients .= $build_address;
array_push($this->action_msgs,"Recipient added: " . $addy);
}
}
}
}
/**
*This can be used to add multiple recipients to the "CC:" field of the email message. The email string is limited to 255 characters.
*@param name - string
*@param addy(email)- string
*@return void
*@access public
**/
public function addCC($name,$addy)
{
if (strlen($addy) > 255)
{ // Limit sender address to 255 characters
$array_push($this->error_msgs,"CC email address too long. (255 char max) " . $addy);
}
else
{
if (strlen($name) == 0)
{
array_push($this->warnings,"No CC name for " . $addy);
}
else
{
$build_address = (strlen($name) == 0) ? $name . " " : "";
$build_address .= "<";
$build_address .= $addy;
$build_address .= ">";
if (count($this->CC_list) > 1)
{
$this->CC_list .= ", " . $build_address;
array_push($this->action_msgs,"CC added: " . $addy);
}
else
{
$this->CC_list .= $build_address;
array_push($this->action_msgs,"CC added: " . $addy);
}
}
}
}
/**
* This can be used to add multiple recipients to the "BCC:" field of the email message. The email string is limited to 255 characters.
* @param name - string
* @param addy(email) - string
* @return void
* @access public
**/
public function addBCC($name,$addy)
{
if (strlen($addy) > 255)
{ // Limit sender address to 255 characters
$array_push($this->error_msgs,"BCC email address too long. (255 char max) " . $addy);
}
else
{
if (strlen($name) == 0)
{
array_push($this->warnings,"No BCC name for " . $addy);
}
else
{
$build_address = (strlen($name) == 0) ? $name . " " : "";
$build_address .= "<";
$build_address .= $addy;
$build_address .= ">";
if (count($this->BCC_list) > 1)
{
$this->BCC_list .= ", " . $build_address;
array_push($this->action_msgs,"CC added: " . $addy);
}
else
{
$this->BCC_list .= $build_address;
array_push($this->action_msgs,"CC added: " . $addy);
}
}
}
}
/**
* This can be used to add multiple attachments to the email message. Currently, there is no error checking for extreme file sizes.
* @param string $aname : attachement file name
* @param string $location : attachement location
* @param string attachemnt type : mime type( file type)
* @example : $simple_mailer->addAttachment($_FILES['fdl_name']['name'],$_FILES['fdl_name']['tmp_name'],$_FILES[fdl_name]['type']);
* @return void
* @access public
**/
public function addAttachment($aname,$location,$mimetype)
{
if ($mimetype == "")
{
array_push($this->error_msgs,"No mime type for attachment: " . $location);
}
if ($aname == "")
{
array_push($this->error_msgs,"No attachment name specified for attachment: " . $location);
}
if ($location == "")
{
array_push($this->error_msgs,"No file name specified for attachment");
}
else
{
if (!file_exists($location))
{
array_push($this->error_msgs,"attachment: " . $location . " does not exist");
}
else
{
if (!is_readable($location))
{
array_push($this->error_msgs,"attachment: " . $location . " could not be read");
}
else
{
$toarray = $aname;
$toarray .= ",";
$toarray .= $location;
$toarray .= ",";
$toarray .= $mimetype;
array_push($this->attachments,$toarray);
array_push($this->action_msgs,$location . " set as attachment");
}
}
}
}
/**
* set the message type of the email
* @param string $mtype i.e text or html
* @return void
* @access public
**/
public function setMessageType($mtype)
{
switch ($mtype)
{
case 'text':
$this->ishtml = 0;
array_push($this->action_msgs,'Message body set to text');
break;
case 'html':
$this->ishtml = 1;
array_push($this->action_msgs,'Message body set to html');
break;
default:
$this->ishtml = 0;
array_push($this->action_msgs,'Message body set to text');
break;
}
}
/**
* set the bounce forwarding mail
* @param string (email)
* @return void
* @access public
*
**/
public function setBounceForwardEmail($bounceMail)
{
if (strlen($bounceMail) > 255)
{ // Limit sender address to 255 characters
$array_push($this->error_msgs,"Bounce email address too long. (255 char max)");
}
else
{
if (strlen($bounceMail) == 0) {
array_push($this->error_msgs,"Bounce email address too short or invalid");
}
else
{ // validate email address here
if (!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $bounceMail))
{
array_push($this->error_msgs,"Email address not correctly formatted");
}
else
{
array_push($this->action_msgs,"Bounce Email address format has been validated");
$this->bounceMail = $bounceMail;
}
}
}
}
/**
*Returns a string of successful actions performed in the script.
* @param void
* @return string
* @access public
**/
public function getActions()
{
$returnstring = "";
if (count($this->action_msgs) > 0)
{
for ($i=0;$i<count($this->action_msgs);$i++)
{
$returnstring .= $this->action_msgs[$i] . "<br>\n";
}
}
return $returnstring;
}
/**
* Returns string of potential errors in the script
* @param void
* @return string of potential errors in the script
* @access public
*/
public function getWarnings()
{
$returnstring = "";
if (count($this->warnings) > 0)
{
for ($i=0;$i<count($this->warnings);$i++)
{
$returnstring .= $this->warnings[$i] . "<br>\n";
}
}
return $returnstring;
}
/**
* Returns a string of all critical errors in the script.
* @param void
* @return string
* @access public
**/
public function getErrors()
{
$returnstring = "";
if (count($this->error_msgs) > 0)
{
for ($i=0;$i<count($this->error_msgs);$i++)
{
$returnstring .= $this->error_msgs[$i] . "<br>\n";
}
}
return $returnstring;
}
/**
* Sends the email message using the PHP mail() function as its base
* @param void
* @return bool
* @access public
**/
public function send()
{
if (count($this->error_msgs) == 0
) {
$boundary = '=_'.md5(uniqid(rand()).microtime());
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Date: ". date("r",time()) . "\r\nFrom: ";
$headers .= ($this->sendername == "") ? "" : $this->sendername . " ";
$headers .= "<";
$headers .= $this->senderaddy;
$headers .= ">\r\n";
$headers .= "To: ";
#$headers .= $this->recipients;
$headers .= "\r\n";
if (strlen($this->CC_list) > 0)
{
$headers .= "CC: ";
$headers .= $this->CC_list;
$headers .= "\r\n";
}
if (strlen($this->BCC_list) > 0)
{
$headers .= "BCC: ";
$headers .= $this->BCC_list;
$headers .= "\r\n";
}
$headers .= "Content-Type: multipart/mixed; boundary=\"" . $boundary . "\"\r\n";
$headers .= "Content-Transfer-Encoding: 8bit\r\n";
$meat = "--$boundary\r\n";
if ($this->ishtml == 0)
{
$meat .= "Content-Type: text/plain; charset=\"iso-8859-1\"\r\n";
}
if ($this->ishtml == 1)
{
$meat .= "Content-Type: text/html; charset=\"iso-8859-1\"\r\n";
}
$meat .= "Content-Transfer-Encoding: 8bit\r\n\r\n";
$meat .= $this->message;
$meat .= "\r\n\r\n\r\n--";
$meat .= $boundary;
$meat .= (count($this->attachments) > 0) ? "\r\n" : "--\r\n";
if (count($this->attachments) > 0)
{
set_magic_quotes_runtime(0);
for ($j=0;$j<count($this->attachments);$j++)
{
$last_attachment = count($this->attachments) - 1;
list($filename,$location,$mimetype) = split(',',$this->attachments[$j]);
$meat .= "Content-Type: ";
$meat .= $mimetype;
$meat .= "; name=\"";
$meat .= $filename;
$meat .= "\"\r\n";
$meat .= "Content-Transfer-Encoding: base64\r\n";
$meat .= "Content-Disposition: attachment\r\n\r\n";
$meat .= rtrim(chunk_split(base64_encode($this->getFile($location))));
if ($j == $last_attachment)
{
$meat .= "\r\n--";
$meat .= $boundary;
$meat .= "--";
} else
{
$meat .= "\r\n--";
$meat .= $boundary;
$meat .= "\r\n";
}
}
set_magic_quotes_runtime(get_magic_quotes_gpc());
}
mail($this->recipients,$this->subject,$meat,$headers,$this->bounceMail);
return TRUE;
}
else
{
return FALSE;
}
}
/**
* Validate Email with MX Record and the email format
* pass only email address , and it return boolean value
* @param string
* @return bool
* @access public
**/
public function validateMxRecord($email)
{
list($prefix, $domain) = split("@",$email);
if(function_exists("getmxrr") && getmxrr($domain, $mxhosts))
{
return true;
}
elseif (@fsockopen($domain, 25, $errno, $errstr, 5))
{
return true;
}
else
{
return false;
}
}
/**
* This is the function to set the command
* It is used in the Mxvalidation of email
* @param string (Resource id of Object)$fp
* @return string code string
* @access private
**/
private function _sendCommand($fp, $out)
{
fwrite($fp, $out . "\r\n");
return $this->_getData($fp);
}
/**
* This function is the private funcation and pass the file pointer to get out the file details
* It is made for to support Mx validation mail function
* @param string socket resource id
* @return string (code string)
* @access private
**/
private function _getData($fp)
{
$s="";
stream_set_timeout($fp, 2);
for($i=0;$i<2;$i++)
$s.=fgets($fp, 1024);
return $s;
}
}
?>
code file
<?php
if(isset($_REQUEST['Submit'])=='Submit')
{
include("Email.php");
if($_FILES['userfile']['size'] <= 0 || $_FILES['userfile']['size'] > $_REQUEST['MAX_FILE_SIZE']) {
echo "please upload a valid size file";
echo $_FILES['userfile']['name'];
}
if($_FILES['userfile2']['size'] <= 0 || $_FILES['userfile2']['size'] > $_REQUEST['MAX_FILE_SIZE']) {
echo "please upload a valid size file";
}
else
{
// form data
@extract($_POST);
$str='';
$str.='Name :'.$name;
$str.='<br/>Father Name :'.$fathername;
$str.='<br/>Enroll. No. :'.$enrollnumber.' '.$enrollnumber2.' '.$enrollnumber3.' '.$enrollnumber4;
$str.='<br/>Course :'.$course;
$str.='<br/>Local Address :'.$laddress.','.$laddress2.','.$laddress3;
$str.='<br/>Parmanent Address :'.$paddress.','.$paddress2.','.$paddress3;;
$str.='<br/>Cell No. :'.$celnomber;
$str.='<br/>Land Line :'.$landlinenumber;
$str.='<br/>Guardian Contact No :'.$parrentnumber;
$str.='<br/>Email :'.$emailid;
$str.='<br/>Non-Working :'.$nw;
$str.='<br/>Working :'.$w;
$str.='<br/>Self-Employment :'.$se;
$str.='<br/>Name of the Company :'.$cname;
$str.='<br/>Ph.No. :'.$cphone;
$str.='<br/>Address of Company :'.$caddress;
$str.='<br/>Designation of Job :'.$designation;
$str.='<br/>Nature of Job :'.$natureofjob;
$str.='<br/>Current Salary Rs :'.$ctc;
$objmail = new Email(); // create new Email object
$objmail->setSubject("Registration Form Details"); // set the subject line of the email
$objmail->setMessageType("html"); // text or html mime-type
$objmail->setMessage($str); // set the message body of the email message
$objmail->setSender($_POST['name'],$_POST['emailid']);
//$objmail->setSender($_POST['emailid']); //
# $objmail->addRecipient("krishnbhardwaj@gmail.com","info@iimmieducation.com","tapan@ridhisolutions.com"); // add a recipient to the email To: list
$objmail->addRecipient("Info","yogeshbajapi@gmail.com");
$objmail->addCC("Krishn","yogeshbajapi@gmail.com");
while (list($key, $val) = each($_FILES)) { // reads uploaded files from a web form
if ($_FILES[$key]['size'] > 0) { // if the filesize is > 0
if ($_FILES[$key]['error'] == 0) { // and if there were no errors
$objmail->addAttachment($_FILES[$key]['name'],$_FILES[$key]['tmp_name'],$_FILES[$key]['type']); // add the file as an attachment
}
}
}
if($objmail->send())
{
$msg='Thank you for Registration';
}
else{
$msg='Sorry, Your Registration is not complete, please contact us';
}
#echo $objmail->getActions(); // display all actions performed during the processing
#echo $objmail->getWarnings(); // display all warnins during the processing
#echo $objmail->getErrors(); // display all errors during the processing
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="Description" content="IIMMI- International Institute of Management Media IT from Delhi, India provides courses for PGDBM- Post graduate diploma in business management, marketing, finance, human resource management, advertising, information technology.." />
<meta name="Keywords" content="International Institute of Management Media IT, Business Management Institutes, Institute Of Business Management, Post Graduate Diploma in Business Management, Marketing, Finance, Human Resource Management, Advertising, Information Technology." />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>International Institute of Management, Media & IT delhi, india</title>
<SCRIPT language=Javascript>
<!--
document.onmousedown = nrc;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (bNS && bV<5) window.onmousedown = nrc;
function expandit(objname,image){
var folder='';
curobj = objname + 'info';
imgobj = objname + 'img';
folder = getObjectRef(curobj).style;
if (folder.display=="none") {
folder.display="";
getObjectRef(imgobj).src = "/images/spacer.gif";
} else {
folder.display="none"
getObjectRef(imgobj).src = "/images/spacer.gif";
}
}
function getObjectRef(n, d) {
//based off MM_findObj v4.01
//n: String
//d: Document (for netscape4 recursion)
var p,i,x;
if(!d)
d=document;
if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document;
n=n.substring(0,p);
}
if(!(x=d[n])&&d.all)
x=d.all[n];
for (i=0;!x&&i<d.forms.length;i++)
x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++)
x=getObjectRef(n,d.layers[i].document);
if(!x && d.getElementById)
x=d.getElementById(n);
return x;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
//-->
</SCRIPT>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-image: url(images/backloop.jpg);
background-repeat: repeat-x;
}
-->
</style>
<link href="style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.style7 {font-family: Arial, Helvetica, sans-serif; font-size: 14px; color: #666666; }
-->
</style>
</head>
<body>
<table width="769" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="769"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="769" height="200" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="flash/topbaner.swf" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#ffffff" /> <embed src="flash/topbaner.swf" quality="high" wmode="transparent" bgcolor="#ffffff" width="769" height="200" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object></td>
</tr>
</table>
<table width="779" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td background="images/leftback.gif"><img src="images/spacer.gif" width="12" height="10" /></td>
<td width="754" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top"> </td>
<td width="75%" valign="top"> </td>
</tr>
<tr>
<td width="25%" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#e6e6e6"><table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td valign="middle" class="l1after"><img src="images/spacer.gif" width="100" height="1" /></td>
</tr>
<tr>
<td valign="middle" background="images/menuback.jpg" class="l1after"><a href="index.html" class="l1">Home </a></td>
</tr>
<tr>
<td background="images/menuback.jpg"><a href="javascript:expandit('4','box');" class="l1">About Us </a>
<div id="4info" style="DISPLAY: none" align="right"> <a href="theinstitute.html" class="l2"> The Institute </a><br />
<a href="theuniversity.html"class="l2">The University</a><br />
</div> </td>
</tr>
<tr>
<td background="images/menuback.jpg"><a href="javascript:expandit('1','box');" class="l1">Admission </a>
<div id="1info" style="DISPLAY: none" align="right"> <a href="how2apply.html" class="l2"> How to apply </a><br />
<a href="rules.html"class="l2">Rules</a><br />
</div></td>
</tr>
<tr>
<td background="images/menuback.jpg"><a href="teachingmethodology.html" class="l1">Teaching Methodology </a></td>
</tr>
<tr>
<td background="images/menuback.jpg" ><a href="javascript:expandit('2','box');" class="l1">Infrastructure</a>
<div id="2info" style="DISPLAY: none" align="right"> <a href="itcenter.html"class="l2">IT center</a><br />
<a href="mass_c_studio.htm" class="l2">Mass communication studio</a> </div></td>
</tr>
<tr>
<td background="images/menuback.jpg"><a href="ourmentors_faculty.html" class="l1">Our mentors & faculty </a></td>
</tr>
<tr>
<td background="images/menuback.jpg"><a href="javascript:expandit('3','box');" class="l1">Course & Syllabus </a>
<div id="3info" style="DISPLAY: none" align="right"> <a href="mediacourse.html" class="l2"> Media</a><br />
<a href="managementcourse.html"class="l2">Management</a><br />
<a href="itcourse.html" class="l2">Information Technology</a></div></td>
</tr>
<tr>
<td background="images/menuback.jpg"><span class="style7"><a href="placement.html" class="l1">Placement </a></span></td>
</tr>
<tr>
<td background="images/menuback.jpg"><span class="style7"><a href="photogallery.html" class="l1">Photo Gallery </a></span></td>
</tr>
<tr>
<td height="16" background="images/menuback.jpg"><span class="style7"><a href="fa2.html" class="l1">FAQ</a></span></td>
</tr>
<tr>
<td background="images/menuback.jpg"><span class="style7"><a href="activities.html" class="l1">Activities </a></span></td>
</tr>
<tr>
<td background="images/menuback.jpg"><span class="style7"><a href="facilities.html" class="l1">Facilities </a></span></td>
</tr>
<tr>
<td background="images/menuback.jpg"><span class="style7"><a href="educationloans.html" class="l1">Education Loans </a></span></td>
</tr>
<tr>
<td background="images/menuback.jpg"><a href="contactus.html" class="l1">Contact Us </a></td>
</tr>
</table></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
<tr>
<td bgcolor="#FF6600"><table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><img src="images/spacer.gif" width="100" height="1" /></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><img src="images/download.jpg" /></td>
</tr>
<tr>
<td><img src="images/spacer.gif" width="100" height="1" /></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><img src="images/spacer.gif" width="100" height="5" /></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><div align="center"><a href="downloads/admission_form.pdf" target="_blank"><img src="images/aplicationform.jpg" width="178" height="76" border="0" /></a></div></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><img src="images/spacer.gif" width="100" height="5" /></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><img src="images/spacer.gif" width="100" height="5" /></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><div align="center"><a href="downloads/e-brouchure.pdf" target="_blank"><img src="images/ebroucher.jpg" width="178" height="76" border="0" /></a></div></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><img src="images/spacer.gif" width="100" height="5" /></td>
</tr>
<tr>
<td><img src="images/spacer.gif" width="100" height="1" /></td>
</tr>
</table></td>
</tr>
</table></td>
<td valign="top">
<?php echo $msg;?>
</td>
</tr>
</table></td>
<td background="images/rightback.gif"><img src="images/spacer.gif" width="13" height="10" /></td>
</tr>
<tr>
<td> </td>
<td background="images/botumback.gif"><table width="80" border="0" align="right" cellpadding="0" cellspacing="0">
<tr>
<td><a href="index.html" class="l1">Home</a></td>
<td><a href="#top" class="l1">Top</a></td>
</tr>
</table></td>
<td> </td>
</tr>
<tr>
<td width="12"><img src="images/leftbotum.gif" width="12" height="13" /></td>
<td background="images/botumback.gif"><img src="images/spacer.gif" width="100" height="13" /></td>
<td width="13"><img src="images/rightbotum.gif" width="13" height="13" /></td>
</tr>
</table>
<table width="779" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="779"><img src="images/spacer.gif" width="779" height="5" /></td>
</tr>
<tr>
<td bgcolor="#6699FF"><img src="images/spacer.gif" width="779" height="1" /></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><table width="65%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="1%"><p align="center" class="bodytext">INTERNATIONAL INSTITUTE OF MANAGEMENT, MEDIA & IT<br />
65, Main Ring Road, Kingsway Camp, G.T.B. Nagar, Opp. G.T.B. Nagar Metro Station,<br />
(Next to Delhi University(Vishvidyalaya)
Metro Station),<br />
(In the lane of Samrat Restaurant & Bank of Baroda), Delhi-110009 <br />
Ph. :011-65434465,011-65434466,
011-45534466<br />
E-mail: <a href="mailto:iimmiindia@gmail.com" class="l1">iimmiindia@gmail.com</a></p></td>
</tr>
</table></td>
</tr>
<tr>
<td bgcolor="#6699FF"><img src="images/spacer.gif" width="779" height="1" /></td>
</tr>
</table>
<table width="779" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><img src="images/spacer.gif" width="779" height="5" /></td>
</tr>
<tr>
<td bgcolor="#FF6600"><img src="images/spacer.gif" width="779" height="1" /></td>
</tr>
<tr>
<td bgcolor="#FF6600"><table width="779" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="1%"><span class="disclai">Disclaimer :- Content published in website have no Legal Sancitity and are of general reference only. Visitors of this website is required to refer to the official document published by International Institute of Management, Media & IT to ascertain the facts. </span></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td bgcolor="#FF6600"><img src="images/spacer.gif" width="779" height="1" /></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><img src="images/spacer.gif" width="779" height="10" /></td>
</tr>
</table>
</body>
</html>
<?php
/**
* This class supports to send validate , add cc, add BCC, Add atachement and send emails in
* both format html as well as text
* @author Rahul
* @version $Id: Email.php rahul $
*/
class Email
{
/**
* @var string
* @access private
*/
private $subject;
/**
* @var string
* @access private
*/
private $sendername;
/**
* @var string
* @access private
*/
private $senderaddy;
/**
* @var string
* @access private
*/
private $message;
/**
* @var string
* @access private
*/
private $recipients;
/**
* @var string
* @access private
*/
private $CC_list;
/**
* @var string
* @access private
*/
private $BCC_list;
/**
* @var string
* @access private
*/
private $bounceMail;
/**
* @var array
* @access private
*/
private $attachments = array(); // filename(as attachment name),location(path+filename of attachment),mime-type
/**
* @var integer
* @access private
*/
private $ishtml = 0;
/**
* @var array
* @access private
*/
private $warnings = array();
/**
* @var array
* @access private
*/
private $action_msgs = array();
/**
* @var array
* @access private
*/
private $error_msgs = array();
/**
* open and read the attachement file
* use for class only
* @param string (filename)
* @return bool
* @access private
**/
private function getFile($filename)
{
if ($fp = fopen($filename, 'rb'))
{
$return = fread($fp, filesize($filename));
fclose($fp);
return $return;
} else
{
return FALSE;
}
}
/**
* Set the email subjcet
* @param string
* @return void
* @access public
**/
public function setSubject($msg)
{
if (strlen($msg) > 255)
{ // Limit subject line to 255 characters
$msg = substr($msg,0,255);
array_push($this->warnings,"Subject line was truncated to 255 characters.");
}
$this->subject = $msg;
array_push($this->action_msgs,"Subject line set to: " . $msg);
}
/**
* Set the sender email
* validate the name and email address
* This sets the "From:" field in the email message. The email string is limited to 255 characters.
* @param string --$name
* @param string -- addy (email address)
* @return void
* @access public
**/
public function setSender($name,$addy)
{
if (strlen($addy) > 255)
{ // Limit sender address to 255 characters
$array_push($this->error_msgs,"Sender email address too long. (255 char max)");
} else {
if (strlen($name) != 0)
{
$this->sendername = $name;
array_push($this->action_msgs,"Sender name set to: " . $name);
} else
{
array_push($this->action_msgs,"Sender name not set (empty field)");
}
if (strlen($addy) == 0)
{
array_push($this->error_msgs,"Sender email address too short or invalid");
} else
{ // validate email address here
if (!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $addy))
{
array_push($this->error_msgs,"Email address not correctly formatted");
}
else
{
array_push($this->action_msgs,"Email address format has been validated");
$this->senderaddy = $addy;
}
}
}
}
/**
*This sets the body of the email message.
* @param string
* @return void
* @access public
**/
public function setMessage($msg)
{
$this->message = $msg;
array_push($this->action_msgs,"Email message set");
}
/**
* This can be used to add multiple recipients to the "To:" field of the email message. The email string is limited to 255 character
* @param name - string
* @param addy(email)- string
* @return void
* @access public
**/
public function addRecipient($name,$addy)
{
if (strlen($addy) > 255)
{ // Limit sender address to 255 characters
$array_push($this->error_msgs,"Recipient email address too long. (255 char max) " . $addy);
}
else
{
if (strlen($name) == 0)
{
array_push($this->warnings,"No recipient name for " . $addy);
} else
{
$build_address = (strlen($name) != 0) ? $name . " " : "";
$build_address .= "<";
$build_address .= $addy;
$build_address .= ">";
if (count($this->recipients) > 1)
{
$this->recipients .= ", " . $build_address;
array_push($this->action_msgs,"Recipient added: " . $addy);
}
else
{
$this->recipients .= $build_address;
array_push($this->action_msgs,"Recipient added: " . $addy);
}
}
}
}
/**
*This can be used to add multiple recipients to the "CC:" field of the email message. The email string is limited to 255 characters.
*@param name - string
*@param addy(email)- string
*@return void
*@access public
**/
public function addCC($name,$addy)
{
if (strlen($addy) > 255)
{ // Limit sender address to 255 characters
$array_push($this->error_msgs,"CC email address too long. (255 char max) " . $addy);
}
else
{
if (strlen($name) == 0)
{
array_push($this->warnings,"No CC name for " . $addy);
}
else
{
$build_address = (strlen($name) == 0) ? $name . " " : "";
$build_address .= "<";
$build_address .= $addy;
$build_address .= ">";
if (count($this->CC_list) > 1)
{
$this->CC_list .= ", " . $build_address;
array_push($this->action_msgs,"CC added: " . $addy);
}
else
{
$this->CC_list .= $build_address;
array_push($this->action_msgs,"CC added: " . $addy);
}
}
}
}
/**
* This can be used to add multiple recipients to the "BCC:" field of the email message. The email string is limited to 255 characters.
* @param name - string
* @param addy(email) - string
* @return void
* @access public
**/
public function addBCC($name,$addy)
{
if (strlen($addy) > 255)
{ // Limit sender address to 255 characters
$array_push($this->error_msgs,"BCC email address too long. (255 char max) " . $addy);
}
else
{
if (strlen($name) == 0)
{
array_push($this->warnings,"No BCC name for " . $addy);
}
else
{
$build_address = (strlen($name) == 0) ? $name . " " : "";
$build_address .= "<";
$build_address .= $addy;
$build_address .= ">";
if (count($this->BCC_list) > 1)
{
$this->BCC_list .= ", " . $build_address;
array_push($this->action_msgs,"CC added: " . $addy);
}
else
{
$this->BCC_list .= $build_address;
array_push($this->action_msgs,"CC added: " . $addy);
}
}
}
}
/**
* This can be used to add multiple attachments to the email message. Currently, there is no error checking for extreme file sizes.
* @param string $aname : attachement file name
* @param string $location : attachement location
* @param string attachemnt type : mime type( file type)
* @example : $simple_mailer->addAttachment($_FILES['fdl_name']['name'],$_FILES['fdl_name']['tmp_name'],$_FILES[fdl_name]['type']);
* @return void
* @access public
**/
public function addAttachment($aname,$location,$mimetype)
{
if ($mimetype == "")
{
array_push($this->error_msgs,"No mime type for attachment: " . $location);
}
if ($aname == "")
{
array_push($this->error_msgs,"No attachment name specified for attachment: " . $location);
}
if ($location == "")
{
array_push($this->error_msgs,"No file name specified for attachment");
}
else
{
if (!file_exists($location))
{
array_push($this->error_msgs,"attachment: " . $location . " does not exist");
}
else
{
if (!is_readable($location))
{
array_push($this->error_msgs,"attachment: " . $location . " could not be read");
}
else
{
$toarray = $aname;
$toarray .= ",";
$toarray .= $location;
$toarray .= ",";
$toarray .= $mimetype;
array_push($this->attachments,$toarray);
array_push($this->action_msgs,$location . " set as attachment");
}
}
}
}
/**
* set the message type of the email
* @param string $mtype i.e text or html
* @return void
* @access public
**/
public function setMessageType($mtype)
{
switch ($mtype)
{
case 'text':
$this->ishtml = 0;
array_push($this->action_msgs,'Message body set to text');
break;
case 'html':
$this->ishtml = 1;
array_push($this->action_msgs,'Message body set to html');
break;
default:
$this->ishtml = 0;
array_push($this->action_msgs,'Message body set to text');
break;
}
}
/**
* set the bounce forwarding mail
* @param string (email)
* @return void
* @access public
*
**/
public function setBounceForwardEmail($bounceMail)
{
if (strlen($bounceMail) > 255)
{ // Limit sender address to 255 characters
$array_push($this->error_msgs,"Bounce email address too long. (255 char max)");
}
else
{
if (strlen($bounceMail) == 0) {
array_push($this->error_msgs,"Bounce email address too short or invalid");
}
else
{ // validate email address here
if (!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $bounceMail))
{
array_push($this->error_msgs,"Email address not correctly formatted");
}
else
{
array_push($this->action_msgs,"Bounce Email address format has been validated");
$this->bounceMail = $bounceMail;
}
}
}
}
/**
*Returns a string of successful actions performed in the script.
* @param void
* @return string
* @access public
**/
public function getActions()
{
$returnstring = "";
if (count($this->action_msgs) > 0)
{
for ($i=0;$i<count($this->action_msgs);$i++)
{
$returnstring .= $this->action_msgs[$i] . "<br>\n";
}
}
return $returnstring;
}
/**
* Returns string of potential errors in the script
* @param void
* @return string of potential errors in the script
* @access public
*/
public function getWarnings()
{
$returnstring = "";
if (count($this->warnings) > 0)
{
for ($i=0;$i<count($this->warnings);$i++)
{
$returnstring .= $this->warnings[$i] . "<br>\n";
}
}
return $returnstring;
}
/**
* Returns a string of all critical errors in the script.
* @param void
* @return string
* @access public
**/
public function getErrors()
{
$returnstring = "";
if (count($this->error_msgs) > 0)
{
for ($i=0;$i<count($this->error_msgs);$i++)
{
$returnstring .= $this->error_msgs[$i] . "<br>\n";
}
}
return $returnstring;
}
/**
* Sends the email message using the PHP mail() function as its base
* @param void
* @return bool
* @access public
**/
public function send()
{
if (count($this->error_msgs) == 0
) {
$boundary = '=_'.md5(uniqid(rand()).microtime());
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Date: ". date("r",time()) . "\r\nFrom: ";
$headers .= ($this->sendername == "") ? "" : $this->sendername . " ";
$headers .= "<";
$headers .= $this->senderaddy;
$headers .= ">\r\n";
$headers .= "To: ";
#$headers .= $this->recipients;
$headers .= "\r\n";
if (strlen($this->CC_list) > 0)
{
$headers .= "CC: ";
$headers .= $this->CC_list;
$headers .= "\r\n";
}
if (strlen($this->BCC_list) > 0)
{
$headers .= "BCC: ";
$headers .= $this->BCC_list;
$headers .= "\r\n";
}
$headers .= "Content-Type: multipart/mixed; boundary=\"" . $boundary . "\"\r\n";
$headers .= "Content-Transfer-Encoding: 8bit\r\n";
$meat = "--$boundary\r\n";
if ($this->ishtml == 0)
{
$meat .= "Content-Type: text/plain; charset=\"iso-8859-1\"\r\n";
}
if ($this->ishtml == 1)
{
$meat .= "Content-Type: text/html; charset=\"iso-8859-1\"\r\n";
}
$meat .= "Content-Transfer-Encoding: 8bit\r\n\r\n";
$meat .= $this->message;
$meat .= "\r\n\r\n\r\n--";
$meat .= $boundary;
$meat .= (count($this->attachments) > 0) ? "\r\n" : "--\r\n";
if (count($this->attachments) > 0)
{
set_magic_quotes_runtime(0);
for ($j=0;$j<count($this->attachments);$j++)
{
$last_attachment = count($this->attachments) - 1;
list($filename,$location,$mimetype) = split(',',$this->attachments[$j]);
$meat .= "Content-Type: ";
$meat .= $mimetype;
$meat .= "; name=\"";
$meat .= $filename;
$meat .= "\"\r\n";
$meat .= "Content-Transfer-Encoding: base64\r\n";
$meat .= "Content-Disposition: attachment\r\n\r\n";
$meat .= rtrim(chunk_split(base64_encode($this->getFile($location))));
if ($j == $last_attachment)
{
$meat .= "\r\n--";
$meat .= $boundary;
$meat .= "--";
} else
{
$meat .= "\r\n--";
$meat .= $boundary;
$meat .= "\r\n";
}
}
set_magic_quotes_runtime(get_magic_quotes_gpc());
}
mail($this->recipients,$this->subject,$meat,$headers,$this->bounceMail);
return TRUE;
}
else
{
return FALSE;
}
}
/**
* Validate Email with MX Record and the email format
* pass only email address , and it return boolean value
* @param string
* @return bool
* @access public
**/
public function validateMxRecord($email)
{
list($prefix, $domain) = split("@",$email);
if(function_exists("getmxrr") && getmxrr($domain, $mxhosts))
{
return true;
}
elseif (@fsockopen($domain, 25, $errno, $errstr, 5))
{
return true;
}
else
{
return false;
}
}
/**
* This is the function to set the command
* It is used in the Mxvalidation of email
* @param string (Resource id of Object)$fp
* @return string code string
* @access private
**/
private function _sendCommand($fp, $out)
{
fwrite($fp, $out . "\r\n");
return $this->_getData($fp);
}
/**
* This function is the private funcation and pass the file pointer to get out the file details
* It is made for to support Mx validation mail function
* @param string socket resource id
* @return string (code string)
* @access private
**/
private function _getData($fp)
{
$s="";
stream_set_timeout($fp, 2);
for($i=0;$i<2;$i++)
$s.=fgets($fp, 1024);
return $s;
}
}
?>
code file
<?php
if(isset($_REQUEST['Submit'])=='Submit')
{
include("Email.php");
if($_FILES['userfile']['size'] <= 0 || $_FILES['userfile']['size'] > $_REQUEST['MAX_FILE_SIZE']) {
echo "please upload a valid size file";
echo $_FILES['userfile']['name'];
}
if($_FILES['userfile2']['size'] <= 0 || $_FILES['userfile2']['size'] > $_REQUEST['MAX_FILE_SIZE']) {
echo "please upload a valid size file";
}
else
{
// form data
@extract($_POST);
$str='';
$str.='Name :'.$name;
$str.='<br/>Father Name :'.$fathername;
$str.='<br/>Enroll. No. :'.$enrollnumber.' '.$enrollnumber2.' '.$enrollnumber3.' '.$enrollnumber4;
$str.='<br/>Course :'.$course;
$str.='<br/>Local Address :'.$laddress.','.$laddress2.','.$laddress3;
$str.='<br/>Parmanent Address :'.$paddress.','.$paddress2.','.$paddress3;;
$str.='<br/>Cell No. :'.$celnomber;
$str.='<br/>Land Line :'.$landlinenumber;
$str.='<br/>Guardian Contact No :'.$parrentnumber;
$str.='<br/>Email :'.$emailid;
$str.='<br/>Non-Working :'.$nw;
$str.='<br/>Working :'.$w;
$str.='<br/>Self-Employment :'.$se;
$str.='<br/>Name of the Company :'.$cname;
$str.='<br/>Ph.No. :'.$cphone;
$str.='<br/>Address of Company :'.$caddress;
$str.='<br/>Designation of Job :'.$designation;
$str.='<br/>Nature of Job :'.$natureofjob;
$str.='<br/>Current Salary Rs :'.$ctc;
$objmail = new Email(); // create new Email object
$objmail->setSubject("Registration Form Details"); // set the subject line of the email
$objmail->setMessageType("html"); // text or html mime-type
$objmail->setMessage($str); // set the message body of the email message
$objmail->setSender($_POST['name'],$_POST['emailid']);
//$objmail->setSender($_POST['emailid']); //
# $objmail->addRecipient("krishnbhardwaj@gmail.com","info@iimmieducation.com","tapan@ridhisolutions.com"); // add a recipient to the email To: list
$objmail->addRecipient("Info","yogeshbajapi@gmail.com");
$objmail->addCC("Krishn","yogeshbajapi@gmail.com");
while (list($key, $val) = each($_FILES)) { // reads uploaded files from a web form
if ($_FILES[$key]['size'] > 0) { // if the filesize is > 0
if ($_FILES[$key]['error'] == 0) { // and if there were no errors
$objmail->addAttachment($_FILES[$key]['name'],$_FILES[$key]['tmp_name'],$_FILES[$key]['type']); // add the file as an attachment
}
}
}
if($objmail->send())
{
$msg='Thank you for Registration';
}
else{
$msg='Sorry, Your Registration is not complete, please contact us';
}
#echo $objmail->getActions(); // display all actions performed during the processing
#echo $objmail->getWarnings(); // display all warnins during the processing
#echo $objmail->getErrors(); // display all errors during the processing
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="Description" content="IIMMI- International Institute of Management Media IT from Delhi, India provides courses for PGDBM- Post graduate diploma in business management, marketing, finance, human resource management, advertising, information technology.." />
<meta name="Keywords" content="International Institute of Management Media IT, Business Management Institutes, Institute Of Business Management, Post Graduate Diploma in Business Management, Marketing, Finance, Human Resource Management, Advertising, Information Technology." />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>International Institute of Management, Media & IT delhi, india</title>
<SCRIPT language=Javascript>
<!--
document.onmousedown = nrc;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (bNS && bV<5) window.onmousedown = nrc;
function expandit(objname,image){
var folder='';
curobj = objname + 'info';
imgobj = objname + 'img';
folder = getObjectRef(curobj).style;
if (folder.display=="none") {
folder.display="";
getObjectRef(imgobj).src = "/images/spacer.gif";
} else {
folder.display="none"
getObjectRef(imgobj).src = "/images/spacer.gif";
}
}
function getObjectRef(n, d) {
//based off MM_findObj v4.01
//n: String
//d: Document (for netscape4 recursion)
var p,i,x;
if(!d)
d=document;
if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document;
n=n.substring(0,p);
}
if(!(x=d[n])&&d.all)
x=d.all[n];
for (i=0;!x&&i<d.forms.length;i++)
x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++)
x=getObjectRef(n,d.layers[i].document);
if(!x && d.getElementById)
x=d.getElementById(n);
return x;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
//-->
</SCRIPT>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-image: url(images/backloop.jpg);
background-repeat: repeat-x;
}
-->
</style>
<link href="style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.style7 {font-family: Arial, Helvetica, sans-serif; font-size: 14px; color: #666666; }
-->
</style>
</head>
<body>
<table width="769" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="769"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="769" height="200" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="flash/topbaner.swf" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#ffffff" /> <embed src="flash/topbaner.swf" quality="high" wmode="transparent" bgcolor="#ffffff" width="769" height="200" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object></td>
</tr>
</table>
<table width="779" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td background="images/leftback.gif"><img src="images/spacer.gif" width="12" height="10" /></td>
<td width="754" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top"> </td>
<td width="75%" valign="top"> </td>
</tr>
<tr>
<td width="25%" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#e6e6e6"><table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td valign="middle" class="l1after"><img src="images/spacer.gif" width="100" height="1" /></td>
</tr>
<tr>
<td valign="middle" background="images/menuback.jpg" class="l1after"><a href="index.html" class="l1">Home </a></td>
</tr>
<tr>
<td background="images/menuback.jpg"><a href="javascript:expandit('4','box');" class="l1">About Us </a>
<div id="4info" style="DISPLAY: none" align="right"> <a href="theinstitute.html" class="l2"> The Institute </a><br />
<a href="theuniversity.html"class="l2">The University</a><br />
</div> </td>
</tr>
<tr>
<td background="images/menuback.jpg"><a href="javascript:expandit('1','box');" class="l1">Admission </a>
<div id="1info" style="DISPLAY: none" align="right"> <a href="how2apply.html" class="l2"> How to apply </a><br />
<a href="rules.html"class="l2">Rules</a><br />
</div></td>
</tr>
<tr>
<td background="images/menuback.jpg"><a href="teachingmethodology.html" class="l1">Teaching Methodology </a></td>
</tr>
<tr>
<td background="images/menuback.jpg" ><a href="javascript:expandit('2','box');" class="l1">Infrastructure</a>
<div id="2info" style="DISPLAY: none" align="right"> <a href="itcenter.html"class="l2">IT center</a><br />
<a href="mass_c_studio.htm" class="l2">Mass communication studio</a> </div></td>
</tr>
<tr>
<td background="images/menuback.jpg"><a href="ourmentors_faculty.html" class="l1">Our mentors & faculty </a></td>
</tr>
<tr>
<td background="images/menuback.jpg"><a href="javascript:expandit('3','box');" class="l1">Course & Syllabus </a>
<div id="3info" style="DISPLAY: none" align="right"> <a href="mediacourse.html" class="l2"> Media</a><br />
<a href="managementcourse.html"class="l2">Management</a><br />
<a href="itcourse.html" class="l2">Information Technology</a></div></td>
</tr>
<tr>
<td background="images/menuback.jpg"><span class="style7"><a href="placement.html" class="l1">Placement </a></span></td>
</tr>
<tr>
<td background="images/menuback.jpg"><span class="style7"><a href="photogallery.html" class="l1">Photo Gallery </a></span></td>
</tr>
<tr>
<td height="16" background="images/menuback.jpg"><span class="style7"><a href="fa2.html" class="l1">FAQ</a></span></td>
</tr>
<tr>
<td background="images/menuback.jpg"><span class="style7"><a href="activities.html" class="l1">Activities </a></span></td>
</tr>
<tr>
<td background="images/menuback.jpg"><span class="style7"><a href="facilities.html" class="l1">Facilities </a></span></td>
</tr>
<tr>
<td background="images/menuback.jpg"><span class="style7"><a href="educationloans.html" class="l1">Education Loans </a></span></td>
</tr>
<tr>
<td background="images/menuback.jpg"><a href="contactus.html" class="l1">Contact Us </a></td>
</tr>
</table></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
<tr>
<td bgcolor="#FF6600"><table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><img src="images/spacer.gif" width="100" height="1" /></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><img src="images/download.jpg" /></td>
</tr>
<tr>
<td><img src="images/spacer.gif" width="100" height="1" /></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><img src="images/spacer.gif" width="100" height="5" /></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><div align="center"><a href="downloads/admission_form.pdf" target="_blank"><img src="images/aplicationform.jpg" width="178" height="76" border="0" /></a></div></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><img src="images/spacer.gif" width="100" height="5" /></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><img src="images/spacer.gif" width="100" height="5" /></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><div align="center"><a href="downloads/e-brouchure.pdf" target="_blank"><img src="images/ebroucher.jpg" width="178" height="76" border="0" /></a></div></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><img src="images/spacer.gif" width="100" height="5" /></td>
</tr>
<tr>
<td><img src="images/spacer.gif" width="100" height="1" /></td>
</tr>
</table></td>
</tr>
</table></td>
<td valign="top">
<?php echo $msg;?>
</td>
</tr>
</table></td>
<td background="images/rightback.gif"><img src="images/spacer.gif" width="13" height="10" /></td>
</tr>
<tr>
<td> </td>
<td background="images/botumback.gif"><table width="80" border="0" align="right" cellpadding="0" cellspacing="0">
<tr>
<td><a href="index.html" class="l1">Home</a></td>
<td><a href="#top" class="l1">Top</a></td>
</tr>
</table></td>
<td> </td>
</tr>
<tr>
<td width="12"><img src="images/leftbotum.gif" width="12" height="13" /></td>
<td background="images/botumback.gif"><img src="images/spacer.gif" width="100" height="13" /></td>
<td width="13"><img src="images/rightbotum.gif" width="13" height="13" /></td>
</tr>
</table>
<table width="779" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="779"><img src="images/spacer.gif" width="779" height="5" /></td>
</tr>
<tr>
<td bgcolor="#6699FF"><img src="images/spacer.gif" width="779" height="1" /></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><table width="65%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="1%"><p align="center" class="bodytext">INTERNATIONAL INSTITUTE OF MANAGEMENT, MEDIA & IT<br />
65, Main Ring Road, Kingsway Camp, G.T.B. Nagar, Opp. G.T.B. Nagar Metro Station,<br />
(Next to Delhi University(Vishvidyalaya)
Metro Station),<br />
(In the lane of Samrat Restaurant & Bank of Baroda), Delhi-110009 <br />
Ph. :011-65434465,011-65434466,
011-45534466<br />
E-mail: <a href="mailto:iimmiindia@gmail.com" class="l1">iimmiindia@gmail.com</a></p></td>
</tr>
</table></td>
</tr>
<tr>
<td bgcolor="#6699FF"><img src="images/spacer.gif" width="779" height="1" /></td>
</tr>
</table>
<table width="779" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><img src="images/spacer.gif" width="779" height="5" /></td>
</tr>
<tr>
<td bgcolor="#FF6600"><img src="images/spacer.gif" width="779" height="1" /></td>
</tr>
<tr>
<td bgcolor="#FF6600"><table width="779" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="1%"><span class="disclai">Disclaimer :- Content published in website have no Legal Sancitity and are of general reference only. Visitors of this website is required to refer to the official document published by International Institute of Management, Media & IT to ascertain the facts. </span></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td bgcolor="#FF6600"><img src="images/spacer.gif" width="779" height="1" /></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><img src="images/spacer.gif" width="779" height="10" /></td>
</tr>
</table>
</body>
</html>
Subscribe to:
Comments (Atom)