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

oadaeh’s picture

Status: Active » Closed (won't fix)

The 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: