How to send mail with attachment using PHP-Mailer Function
Step 1 : Just the copy and paste the below code on mail.php and use it.Just download Php-Mailer Function
<?php
include('base.php');
$home=new main();
require_once('plugin/PHPMailer-master/class.phpmailer.php');
if(isset($_POST['submit']))
{
$fname=$_POST['fname'];
$phno=$_POST['phno'];
$email=$_POST['email'];
$college=$_POST['college'];
$path="SACMS/resume/";
$valid_formats = array("doc", "docx", "pdf");
$name = $_FILES['resume']['name'];
$size = $_FILES['resume']['size'];
if(strlen($name))