Bonjour,
J'ai un petit problème avec libmail.php. J'arrive à envoyer un fichier déjà présent sur mon disque dur. Par contre, je n'arrive pas à envoyer le .doc que je viens de générer à travers un formulaire.
On m'affiche l'erreur suivante:
Class Mail, method attach : file C:\wamp\www\Site intranet\Requests\frstoea/"application_update_du_30102009113115.doc can't be found
Voici mon script:
<?php
include "libmail.php";
$m= new Mail; // create the mail
$m->From( "SOX" );
$m->To( "othmane.elamrani@ame.imptob.com" );
$m->Subject( "REQUETE SOX" );
$m->Body( "Hello\nThis is a test of the Mail component" ); // set the body
//$m->Cc( "someone@somewhere.fr");
//$m->Bcc( "someoneelse@somewhere.fr");
$m->Priority(4) ; // set the priority to Low
$m->Attach( "C:\wamp\www\Site intranet\Requests\\". $dossier ."/\"". $nomfichier .".doc", "application/x-msword", "inline" ) ; // attach a file of type image/gif to be displayed in the message if possible
$m->Send(); // send the mail
?>
J'espère que vous pourrez m'aider à avancer.
Merci d'avance.