Hi,
I'd like to have a form where customers can order an Email with two PDF attachments. Now - doing one attachment is easy if you use the code mentioned here: http://www.chronoengine.com/forums/index.php?option=com_chronoforums&cont=posts&p=47863
But - how do I do two attachments? Just adding in another line doesn't work ... any help is highly appreciated!
I'd like to have a form where customers can order an Email with two PDF attachments. Now - doing one attachment is easy if you use the code mentioned here: http://www.chronoengine.com/forums/index.php?option=com_chronoforums&cont=posts&p=47863
But - how do I do two attachments? Just adding in another line doesn't work ... any help is highly appreciated!
Hi OlliMuc
You need to add another entry to the array:
Bob
You need to add another entry to the array:
<?php
$MyForm =& CFChronoForm::getInstance('Your_Form_Name');//Replace with Your Form name
$form_id = $MyForm->formrow->id;
$MyUploads =& CFUploads::getInstance($form_id);
$MyUploads->attachments = array();
$MyUploads->attachments[] = JPATH_SITE.DS.'images'.DS.'stories'.DS.'Your_Folder_Name'.DS.'Your_File_Name';
$MyUploads->attachments[] = JPATH_SITE.DS.'images'.DS.'stories'.DS.'Your_Other_Folder_Name'.DS.'Your_Other_File_Name';
?>
Bob
This topic is locked and no more replies can be posted.