1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
$nomResult= "toto";
$prenomResult = "bubu" ;
$tafResult = "emplo"i ;
$SlaveResult = "esclave interne";
$mailResult = "toinmail@mail.com";
$link = "www.google.com" ; // <------------- ceci est mon probleme
$to = 'mon_mail@gmail.com';
$subject = 'une nouvelle candidature de '. strip_tags("".$nomResult." ".$prenomResult ) .' est présente pour un '. strip_tags("".$tafResult."".$slaveResult) ;
$message = '<html><body>';
$message .= '<img class="" src="http://fabrique-d-images.com/imgs/0_Icones/candi.jpg" alt="avatar"/>';
//$message .= '<table rules="all" style="border-color: #666;" cellpadding="10">';
$message .= '<table>';
$message .= "<tr ><td><strong>Name:</strong> </td><td>" . strip_tags($nomResult." ".$prenomResult ) . "</td></tr>";
$message .= "<tr><td><strong>Email:</strong> </td><td>" . strip_tags($mailResult) . "</td></tr>";
$message .= "<tr><td><strong>Postule:</strong> </td><td>" . strip_tags($tafResult) .strip_tags($slaveResult) . "</td></tr>";
$message .= "<tr><td><strong>Sa fiche:</strong></td><td>" .$link. "</td></tr>";
$message .= "</table>";
$message .= "</body></html>";
$message = wordwrap($message, 70, "\r\n");
// To send HTML mail, the Content-type header must be set
$headers ='From:Candidature <jobs@fabrique-d-images.com>'."\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=iso-8859-1\r\n";
mail($to, $subject, $message, $headers); |
Partager