Bug with attachment?

BernieG 14 Mar, 2012
OK, I have been trying everything I could think of, but it seems there is a bug there:
<?php
$MyForm =& CFChronoForm::getInstance('Attachedtest');
$form_id = $MyForm->formrow->id;
$MyUploads =& CFUploads::getInstance($form_id);
$file1 = JPATH_SITE.DS.'images' .DS. 'MaconAero' .DS. 'REGLEMENT_DES_CONCOURS_2011.pdf';
$file2 = JPATH_SITE.DS.'images' .DS. 'MaconAero' .DS. 'Disposition_des_Pentes_et_des_Parking.pdf';
$MyUploads->attachments = array($file1);
?>
The code above works, but the code below does not (email not sent at all!):
<?php
$MyForm =& CFChronoForm::getInstance('Attachedtest');
$form_id = $MyForm->formrow->id;
$MyUploads =& CFUploads::getInstance($form_id);
$file1 = JPATH_SITE.DS.'images' .DS. 'MaconAero' .DS. 'REGLEMENT_DES_CONCOURS_2011.pdf';
$file2 = JPATH_SITE.DS.'images' .DS. 'MaconAero' .DS. 'Disposition_des_Pentes_et_des_Parking.pdf';
$MyUploads->attachments = array($file1, $file2);
?>

Am I doing something wrong, or is there a problem in the code building the attachments to be sent?

I am with joomla 1.5 last version and Chronoforms 3 last version
Max_admin 17 Mar, 2012
Hi Bernie,

Are you sure that the 2nd file path is correct ? try to switch the order of the 2 files paths ?

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
BernieG 17 Mar, 2012
yes, both are correct, as both are sent when I remove the other one.
This topic is locked and no more replies can be posted.