Yo trabajo los envio de email en 3 fase osea 3 archivos diferentes para mayor seguridad en mi hosting
 
1) Archivo llamado 
olvidoclave.php   Código PHP:
    
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Web - Olvido Contrasena</title>
</head>
<body>
<FORM ENCTYPE="multipart/form-data" ACTION="Envio_email.php" METHOD="POST">
<table width="729" border="0" cellpadding="0" cellspacing="0" bgcolor="#000000">
<tr>
    <td width="737" class="bar"><table width="200" border="0" align="center" cellpadding="0" cellspacing="0" style="margin:5px 0px 5px 0px">
      <tr>        
        </tr>
    </table></td>
  </tr>
  <tr>
    <td align="center" class="mid"> </td>
  </tr>
  <tr>
<td bgcolor="#FFFFFF" style="padding:4px"><table width="500" border="0" cellspacing="0" cellpadding="3">
      <tr>
        <td colspan="2" class="bigg"><b>Olvidé mi clave!</b></td>
      </tr>
        
      <tr>
<td colspan="2">No hay problema. Completa el email con el que te registraste y te enviaremos al mismo las instrucciones para poder seguir utilizando tu cuenta.</td>
      </tr>
      <tr>
 <td width="78" align="right">Tu Email:</td>
<td width="410"><input type="text" name="olv_email" size="30" style="border: 2px solid #990000; background-color: #E8E8E8"></td>
        </tr>
      <tr>
        <td align="right"> </td>
        <td><input type="submit" class="smt" onClick="this.value='Por Favor Espere un momento...'; this.disabled=true; this.form.submit();" value="  <-!  Enviar Usuario - Contraseña  !->  " name="fotos"></td>
      </tr>    
          </table>
</form>
               </td>  </tr>  <tr></tr></td>            </tr>                <tr>               
                  <td width="100%">
                  <table border="0" cellspacing="0" width="73%" cellpadding="0"  height="90" style="border-collapse: collapse" bordercolor="#111111">                    <tr>                      <td width="100%" valign="top">
                      <table border="0" cellspacing="1" width="507">
                        <tr>
                          
</table>
</body>
</html> 
    
    
2) Archivo llamado 
Envio_email.php    Código PHP:
    
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<body topmargin="0" leftmargin="0" style="background-color: 000000;">
           <center><table border="0" width="17%" cellpadding="2" style="font-family: Tahoma; font-size: 10pt">
              <tr>
                <td width="100%">
                <img border="0" src="index/images/ins_spot.gif" width="508" height="27"></td>
             </tr>
              <tr>
                <td width="100%">
                <table border="0" cellspacing="0" width="100%" cellpadding="0" style="font-family: Tahoma; font-size: 8pt; font-weight: bold">
                  <tr>
                    <td width="40%"> </td>
                    <td width="60%">
                    
<br> <br> <br>           
<?include "Envio_Email_Procesor.php";?>
          
          
          
                    
                    </td>
                  </tr>
                </table>
                </td>
              </tr>
              </table></center>