 <p>You can use PHPmailer class to send the mail. It is very easy option to send mails.</p> <p>To use PHPMailer:</p> <ul> <li>Download the PHPMailer script from here: <a href="http://github.com/PHPMailer/PHPMailer" rel="nofollow">http://github.com/PHPMailer/PHPMailer</a></li> <li>Extract the archive and copy the script's folder to a convenient place in your project.</li> <li>Include the main script file -- <code>require_once('path/to/file/class.phpmailer.php');</code></li> </ul> <p>Now, sending emails with attachments goes from being insanely difficult to incredibly easy:</p> <pre><code>$email = new PHPMailer(); $email-&gt;From = 'you@example.com'; $email-&gt;FromName = 'Your Name'; $email-&gt;Subject = 'Message Subject'; $email-&gt;Body = $bodytext; $email-&gt;AddAddress( 'destinationaddress@example.com' ); $file_to_attach = 'PATH_OF_YOUR_FILE_HERE'; $email-&gt;AddAttachment( $file_to_attach , 'NameOfFile.pdf' ); return $email-&gt;Send(); </code></pre> <p>It's just that one line $email->AddAttachment(); to add an attachment.</p>