Hi,
for all of you who search for a custom contact form with the ability to attach files, here is my solution.
Hope you enjoy it and don't be shy, let me know your opinion and give me some feedback so I can improve this form.
<?php
$form['name'] = array(
'#type' => 'textfield',
'#title' => t('your name'),
'#default_value' => $object['name'],
'#size' => 30,
'#maxlength' => 128,
'#required' => TRUE,
);
$form['eMail'] = array(
'#type' => 'textfield',
'#title' => t('your email-adress'),
'#default_value' => $object['eMail'],
'#size' => 30,
'#maxlength' => 128,
'#required' => TRUE,
);
$form['subject'] = array(
'#type' => 'textfield',
'#title' => t('subject'),
'#default_value' => $object['subject'],
'#size' => 30,
'#maxlength' => 128,
'#required' => TRUE,
);
$form['message'] = array(
'#type' => 'textarea',
'#title' => t('your message'),
'#default_value' => $object['message'],
'#size' => 30,
'#maxlength' => 128,
'#rows' => 7,
'#required' => TRUE,
);
$form['file1'] = array(
'#type' => 'file',
'#title' => t('attach your files here'),
);
$form['file2'] = array(
'#type' => 'file',
);
$form['file3'] = array(
'#type' => 'file',
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('send email'),
);
$form['#attributes']['enctype'] = 'multipart/form-data';