[TYPO3] Need help for using t3lib_formmail

Laurent Signorini lsignorini at ariane-ingenierie.fr
Tue Nov 21 12:06:23 CET 2006


Hello,

I would like ti use t3lib_formmail::addAttachment to send mail with 
attached but it doesn't works.

i use the following code :
require_once (PATH_t3lib."class.t3lib_htmlmail.php");
require_once (PATH_t3lib."class.t3lib_formmail.php");
$msg = t3lib_div::makeInstance("t3lib_formmail");
$V['subject'] = $sujet;
$V['recipient'] = $destinataires;
$V['message'] = $corps;
$V['from_email'] = $from;
$V['from_name'] = $name;
$msg->start($V);
if (!$msg->addAttachment($absoluNameFile,$fileName)) echo "PB avec 
attachement : ".$hashNameFile." file: ".$fileName;
$msg->sendTheMail();

I well receive the mail with his body but without the file attached.
Thanks for helping me.

Regards

LAurent



More information about the TYPO3-english mailing list