I need to send an attachment to an email. The attachment is always the same file. It has been uploaded to the server. But somehow, it doesn't work. Is this possible or is it only possible to attach files that have been uploaded?
Thanks!
Thanks!
Hi van Ginneken,
Please see this FAQ which has a solution for CFv4, it may be possible to adapt this for CFv5, so far I haven't had time to test it.
Bob
Please see this FAQ which has a solution for CFv4, it may be possible to adapt this for CFv5, so far I haven't had time to test it.
Bob
Hi GreyHead.
I have the same question about add a static file attachment to CFv5.
Your solution for CFv4 is including the CFv4 Email [GH] action.
How to install it ?
If I try to install like an extension, I have an error : "JInstaller: :Install: no XML file"
Thanks !
I have the same question about add a static file attachment to CFv5.
Your solution for CFv4 is including the CFv4 Email [GH] action.
How to install it ?
If I try to install like an extension, I have an error : "JInstaller: :Install: no XML file"
Thanks !
v5 version:
https://www.chronoengine.com/faqs/70-cfv5/5224-how-can-i-attach-files-from-my-server-to-an-email-in-cfv5.html
https://www.chronoengine.com/faqs/70-cfv5/5224-how-can-i-attach-files-from-my-server-to-an-email-in-cfv5.html
Thanks Max Payne !
Email [GH] action not needed ?
I will try to change this code to send an attachment depending on a select input in my form.
Email [GH] action not needed ?
I will try to change this code to send an attachment depending on a select input in my form.
No, this code should work with the default Email action!
This is my code.
It works.
It works.
<?php
$files = array (
1 => 'pdf1',
2 => 'pdf2',
3 => 'pdf3'
);
$formation=$form->data['formation'];
$attachment = $files[$formation];
$form->files["candidature"]["path"] = JPATH_SITE."/pdf/".$attachment.'.pdf';
v5 version:
https://www.chronoengine.com/faqs/70-cfv5/5224-how-can-i-attach-files-from-my-server-to-an-email-in-cfv5.html
This works perfectly.
This topic is locked and no more replies can be posted.