Closed (won't fix)
Project:
Contact Attach
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
20 Oct 2011 at 08:18 UTC
Updated:
20 Oct 2011 at 13:57 UTC
This is a very useful module. Can it be used in CCK email field?
I have a CCK field "email".
I added the node form-id "fieldname_mail_page_form" in your code (in if condition). And in the function contact_attach_form_alter(), I added:
case 'email_mail_page_form':
$form['#validate'][] = 'contact_attach_contact_mail_page_validate';
$form['#submit'][] = 'contact_attach_contact_mail_page_submit';
break;email_mail_page_form is the form-id.
In nodeview I have the link "Email contact form". After klick it, I have a contact form with attachment. But I can not send email. I got a error.
What is wrong?
Thanks
Comments
Comment #1
oadaeh commentedThe purpose of this module is to add file attachments to the core Contact module's main form. If you want to add attachments to another form, and you're already using CCK fields, then you should use a file attachment field, as well.
Here are two options: