I would like to create an email submit form for users to submit inquiries and place it inside a node.
I have found something close at http://drupal.org/node/197122 but I also need an email body.

I tried adding

  $form['body'] = array(
    '#type' => 'textarea',
    '#title' => '',
    '#cols' => '50',
    '#rows' => '10',
  ); 

and then

$message = 'Inquiry from: '. $form['email'] <br> .$form['body'] ;

Can someone explain what am I doing wrong here?

Comments

ncd’s picture

I figured out how to configure the Contact module properly so it's not so vital anymore. But eventually I would like use the custom form instead.

Got it up at http://www.urbanpearlstudio.com/ups/?q=contact

harrisben’s picture

The webform module allows you to create your very own contact forms, among other things. Get it at http://drupal.org/project/webform.

ncd’s picture

Hey thats much better. Thanks!

harrisben’s picture

I'm happy to be of service :)