Hello,
Once the form is submitted, chronoforms sends two emails.
I want to attach one file to both emails (already done), and another file to only one of the emails, is it possible??
By now what i´ve got is:
$MyForm =& CFChronoForm::getInstance('myForm');
$form_id = $MyForm->formrow->id;
$MyUploads =& CFUploads::getInstance($form_id);
$MyUploads->attachments[0] = JPATH_SITE.DS.'components'.DS.'com_chronocontact'.DS.'myfolder'.DS.'myfile1.pdf';
$MyUploads->attachments[1] = JPATH_SITE.DS.'components'.DS.'com_chronocontact'.DS.'myfolder'.DS.'myfile2.pdf';
It sends both attachments to the two emails i have setup, but myfile2.pdf should be sent only to one of them.
Thanks
carlos
Once the form is submitted, chronoforms sends two emails.
I want to attach one file to both emails (already done), and another file to only one of the emails, is it possible??
By now what i´ve got is:
$MyForm =& CFChronoForm::getInstance('myForm');
$form_id = $MyForm->formrow->id;
$MyUploads =& CFUploads::getInstance($form_id);
$MyUploads->attachments[0] = JPATH_SITE.DS.'components'.DS.'com_chronocontact'.DS.'myfolder'.DS.'myfile1.pdf';
$MyUploads->attachments[1] = JPATH_SITE.DS.'components'.DS.'com_chronocontact'.DS.'myfolder'.DS.'myfile2.pdf';
It sends both attachments to the two emails i have setup, but myfile2.pdf should be sent only to one of them.
Thanks
carlos
Hi Carlos,
Right now I can’t think of any automated way of doing that :-(
You could do it by creating the second email by hand in the OnSubmit After box but that feels like hard work :-(
I'll keep thinking.
Bob
Right now I can’t think of any automated way of doing that :-(
You could do it by creating the second email by hand in the OnSubmit After box but that feels like hard work :-(
I'll keep thinking.
Bob
Hi Bob,
That was the second possibility i had in mind. It can´t be that difficult. Once its ready i´ll send it in a post.
Cheers,
carlos
That was the second possibility i had in mind. It can´t be that difficult. Once its ready i´ll send it in a post.
Cheers,
carlos
Fiuuuuuuuuu,
It hasn´t been that difficult to send emails once i manage to run a mail server and use it to send emails.
I got stack trying to make a multipart email adding the different mime things, and i don´tt have more time to spend on this :-(
So the final solution has been instead of attaching the file, just add in the email a link to the file. This is not the best solution as the file needs to be in the public scope of the site, i was trying to avoid it but this will be the soution by now.
Does it mean i have to mark the post as "solved"?? or "almost solved"?? 🤣
Cheers,
carlos
It hasn´t been that difficult to send emails once i manage to run a mail server and use it to send emails.
I got stack trying to make a multipart email adding the different mime things, and i don´tt have more time to spend on this :-(
So the final solution has been instead of attaching the file, just add in the email a link to the file. This is not the best solution as the file needs to be in the public scope of the site, i was trying to avoid it but this will be the soution by now.
Does it mean i have to mark the post as "solved"?? or "almost solved"?? 🤣
Cheers,
carlos
This topic is locked and no more replies can be posted.