Chronoforms V3.1 RC4.0 - E-mail Attachments in Restored form

TwoArmedBandit 06 Apr, 2009
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:

$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.
Max_admin 07 Apr, 2009
Hi,

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
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
TwoArmedBandit 07 Apr, 2009
Works fine now. Thanks very much.

That's another license sold 😀
This topic is locked and no more replies can be posted.