Hi
I've recently upgraded to V3.1 RC4.0 following uninstallation of an earlier release. Backed up my forms before upgrade, but when I restored them, one of them is not working correctly.
I had added code to attach a file to the E-mail response as follows:
This worked fine before, but now the E-mail is sent without the attachment. I have checked the setup for the form, and I have made sure that attachments are on/off as appropriate for each of the two messages it generates (nice new option - thanks), but it still doesn't work. Debug mode suggests everything is working ok....
Also, not sure if it's relevant, but the Forms Management page looks wrong - everything is a bit too big. Cleared my cache before upgrade, so I'm not sure whats going on.
Thanks in advance for any advice.
I've recently upgraded to V3.1 RC4.0 following uninstallation of an earlier release. Backed up my forms before upgrade, but when I restored them, one of them is not working correctly.
I had added code to attach a file to the E-mail response as follows:
$attachments [1] = "/home/christma/public_html/eql-info.co.uk/docs/pricing.pdf";
This worked fine before, but now the E-mail is sent without the attachment. I have checked the setup for the form, and I have made sure that attachments are on/off as appropriate for each of the two messages it generates (nice new option - thanks), but it still doesn't work. Debug mode suggests everything is working ok....
Also, not sure if it's relevant, but the Forms Management page looks wrong - everything is a bit too big. Cleared my cache before upgrade, so I'm not sure whats going on.
Thanks in advance for any advice.
Hi,
your code should now be like this:
use it in the same place you had the current code!
Cheers
Max
your code should now be like this:
$MyForm =& CFChronoForm::getInstance();
$MyUploads =& CFUploads::getInstance($MyForm->formrow->id);
$MyUploads->attachments[] = "/home/christma/public_html/eql-info.co.uk/docs/pricing.pdf";
use it in the same place you had the current code!
Cheers
Max
Works fine now. Thanks very much.
That's another license sold 😀
That's another license sold 😀
This topic is locked and no more replies can be posted.