# Mailforum.. need little help

**URL:** https://forum.kirupa.com/t/mailforum-need-little-help/72905
**Category:** Uncategorized
**Created:** [December 10, 2004, 10:48am UTC](https://forum.kirupa.com/t/mailforum-need-little-help/72905 "2004-12-10T10:48:49Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![sWo0p](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@sWo0p](https://forum.kirupa.com/u/sWo0p)
#### Post date: [December 10, 2004, 10:48am UTC](https://forum.kirupa.com/t/mailforum-need-little-help/72905/1 "2004-12-10T10:48:49Z")

</div>

i’m trying to construct a email forum script but i’m a little stuk… the mail() function only can use 5 strings (as im told) im not to good with php now im trying to create a array zo i can put more info in my mail() function but it does’nt work… i keep getting this **"Warning: mail() expects parameter 3 to be string, array given in M:\hosting\web\***_\_test\email\_forum.php on line 40"_\*

can some help???

```php
<?php 

//* besteling verstuur gegevens *//
$naar = ' *******.nl';
$subject = 'Bestelling via website';

$contents = array( 

//*datum tijd *//
'datum' => date ("l, F jS, Y"),
'tijd' => date ("h:i A"),

//* adres gegevens van besteller *//
'bedrijf'	=>	$_POST['bedrijf'], //* naam of bedrijfsnaam besteller *//
'naam'	=>	$_POST['naam'], //* naam besteller *// 
'adres'	=>	$_POST['adres'], //* adres besteller *//
'huis_num' => $_POST['huis_num'], //* huis nummer besteller *//
'postcode' => $_POST['postcode'], //* postcode bestller *//
'telefoon' => $_POST['telefoon'], //* telefoon nummer *//
'email' => $_POST['email'], //* email gevens van besteller *//
'inkoop_no' => $_POST['inkoop_no'], //inkoop nummer *//

//* adres gegevens voor bezorg *//
'bzrg_adres' => $_POST['bzrg_adres'], //* bezorg adres *//
'bzrg_hsn' => $_POST['bzrg_hsn'], //* bezorg huis nummer *//
'bzrg_pstcd' => $_POST['bzrg_pstcd'], //* bezorg postcode *//

//* bestellings informatie *//
'besteling' => $_POST['bestel'], //* plaats bestellingen *//

//* extra informatie *//
'ext_info' => $_POST['ext_info'], //* extra informatie van besteller *//

'Footer' => "<font size=-2>Deze email is automatisch gegenereerd. Als er fouten zijn, neem dan contact op met mail@mailer.com <br>Bedankt!</font>", 
'EmailHeaders' => "Content-Type: text/html; charset=iso-8859-1 
    "

);

if($submit){ 
mail($naar, $subject, $contents, ""); 
} 

?> 

<html> 
<head> 
<title>Request form</title> 
</head> 
<body bgcolor="#FFFFFF"> 
<form method="post" action="<? echo $PHP_SELF; ?>"> 
Bedrijf: <input type="text" name="bedrijf" size="50"><br/> 
Naam besteller: <input type="text" name="naam" size="25"><br/> 
Adres: <input type="text" name="adres" size="25">&nbsp;Huis nummer:&nbsp;<input type="text" name="huis_num" size="5"><br/><br/>
Postoce: <input type="text" name="postcode" size="6"><br/>
Telefoon nummer: <input type="text" name="telefoon" size="10"><br/><br/>
Email adress: <input type="text" name="email" size="30"><br/>
Inkoop nummer: <input type="text" name="inkoop_no" size="30"><br/><br/>
Bestelling: <textarea cols="50" rows="5" name="bestel">TIP: Kopieer en plak van de lijst...</textarea><br/><br/> 
<input type="submit" name="submit" value="Send" /> 
</form>

```
