D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
ipuco
/
www
/
Filename :
bjmc.php
back
Copy
<?php // echo '<pre>'; // print_r($_POST);die; ini_set("include_path", '/mnt/home2/ipuco/php:' . ini_get("include_path") ); require_once "/mnt/home2/ipuco/php/Mail.php"; $from = "Sender <contact@ipu.co.in>"; $to="ipuadmission.com@gmail.com"; $subject="ipu BJMC Registration"; $body ="Name : ".$_POST['name'] ."\r\n"; $body.="E-Mail : ".$_POST['email'] ."\r\n"; $body.="Phone : ".$_POST['phone'] ."\r\n"; $body.="Courses : ".$_POST['Courses'] ."\r\n"; $body.= "Hi,\n\n BJMC Page ."; $host = "mail.ipu.co.in"; $port = "25"; $username = "contact@ipu.co.in"; $password = "yf)+JYE.Ddkv"; $headers = array ('From' => $from, 'To' => $to, 'Subject' => $subject); $smtp = Mail::factory('smtp', array ('host' => "mail.ipu.co.in", 'port' =>25 , 'auth' => true, 'username' => "contact@ipu.co.in", 'password' => "yf)+JYE.Ddkv")); $mail = $smtp->send($to, $headers, $body); if (PEAR::isError($mail)) { echo("<p>" . $mail->getMessage() . "</p>"); } else { echo "<center><strong>.....Download Result .....<br /><br /> Redirecting.....</strong><br /><br /> <img src='loading-spiral.gif'> </center><META HTTP-EQUIV='Refresh' CONTENT='1; URL=http://ipu.admissions.nic.in/'>"; } ?>