Forums

added file attachements - now form is broken

steverahks 05 Feb, 2015
I have been using a form for quite a while with no problems. I added two file attachment fields and now the form is broken. Any ideas on how to fix it?

Here is the error:

Could not instantiate mail function.

Data Array:

Array
(
    [chronoform] => contact
    [event] => submit
    [Itemid] => 591
    [option] => com_chronoforms
    [view] => form
    [first_name] => test
    [last_name] => test
    [company] => test
    [address] => test
    [city] => test
    [state] => te
    [zip] => test
    [phone] => test
    [email] => test
    [sign_up] => 1
    [comment] => fdsasfd sadf asdf 
    [file1] => 20150205140121_Business Plan.doc
    [file2] => 20150205140121_Business Plan_06.pdf
    [chrono_verification] => CBThL
    [input_submit_14] => Submit
    [input_recordtime] => Mid Minnesota Marketing Contact Form Submission 2015-02-05 14:00:45
    [63be2732148b781c1917e0d06c171e63] => 1
    [_PLUGINS_] => 20150205140121_Business Plan.doc,Business Plan.doc,/var/www/midmn/data/www/midmnmarketing.com/joomla/components/com_chronoforms/uploads/contact/20150205140121_Business Plan.doc,439808,http://midmnmarketing.com/components/com_chronoforms/uploads/contact/20150205140121_Business Plan.doc,20150205140121_Business Plan_06.pdf,Business Plan_06.pdf,/var/www/midmn/data/www/midmnmarketing.com/joomla/components/com_chronoforms/uploads/contact/20150205140121_Business Plan_06.pdf,57806,http://midmnmarketing.com/components/com_chronoforms/uploads/contact/20150205140121_Business Plan_06.pdf
)

Validation Errors:

Array
(
)

Thank you for contacting us!


We will get back to you as quickly as we can. We hope the rest of your day is pleasant.
Debug Data

    Core Captcha
        Passed the core captcha check!
    Upload routine started for file upload by : file1
    /var/www/midmn/data/www/midmnmarketing.com/joomla/components/com_chronoforms/uploads/contact/20150205140121_Business Plan.doc has been uploaded successfully.
    Upload routine started for file upload by : file2
    /var/www/midmn/data/www/midmnmarketing.com/joomla/components/com_chronoforms/uploads/contact/20150205140121_Business Plan_06.pdf has been uploaded successfully.
    email
        10
            Result An email has been SENT successfully from (Mid Minnesota Marketing Support)tim.haas@midmnmarketing.com to tim.haas@midmnmarketing.com
            Body
            *First Name: 	test
            *Last Name: 	test
            Company Name: 	test
            *Address: 	test
            *City: 	test
            *State: 	te
            *Zip Code: 	test
            *Phone Number: 	test
            *E-mail: 	test
            I would like to stay connected with Mid Minnesota Marketing and receive occassional e-mails. 	1
            Comments: 	fdsasfd sadf asdf
            Upload File 	20150205140121_Business Plan.doc
            Upload File 	20150205140121_Business Plan_06.pdf
            Mid Minnesota Marketing Contact Form Submission 2015-02-05 14:00:45' />


            Submitted by 173.19.108.67
            Attachments array ( )
    redirect_user
        Error: No Redirect URL found

GreyHead 05 Feb, 2015
Hi tjhaas,

If you submit the form without file uploads does the email send OK?

I can see a couple of possible problems: the To and From Email addresses are the same - that can cause problems; there's a space in the file name which might need fixing if you want to link to it (URLencoding will probably do it).

That said the failed to instantiate message usually flags a problem with the email settings either in the Site Global Configuration or the CF Settings. Please check that they are OK.

Bob
steverahks 05 Feb, 2015
I have the form sending now, but no attachment. What am I missing?

 Debug Data

    Core Captcha
        Passed the core captcha check!
    Upload routine started for file upload by : file1
    /var/www/midmn/data/www/midmnmarketing.com/joomla/components/com_chronoforms/uploads/contact/20150205162710_Business Plan_06.pdf has been uploaded successfully.
    email
        10
            Result An email has been SENT successfully from (Mid Minnesota Marketing Support)tim.haas@midmnmarketing.com to tim.haas@midmnmarketing.com
            Body
            *First Name: 	n
            *Last Name: 	n
            Company Name: 	n
            *Address: 	n
            *City: 	n
            *State: 	n
            *Zip Code: 	n
            *Phone Number: 	n
            *E-mail: 	n
            I would like to stay connected with Mid Minnesota Marketing and receive occasional e-mails. 	1
            Upload File 	20150205162710_Business Plan_06.pdf
            Upload File 	
            Comments: 	n
            Mid Minnesota Marketing Contact Form Submission 2015-02-05 16:26:41' />


            Submitted by 173.19.108.67
            Attachments array ( )
GreyHead 06 Feb, 2015
Hi tjhaas,

Two things to check:

+ Is the Upload Files action before the Email action?

+ Do you have file1,file2 in the Attachments box of the Email action?

Bob
steverahks 07 Feb, 2015
Forgot the attachment box in email action.

Thanks
This topic is locked and no more replies can be posted.