Page 1 of 1

Email issue

Posted: Mon Sep 26, 2005 9:01 am
by ianhull
Hi Guys,

I have another little issue here, never used the mail function beofre and I tried this.

Code: Select all

<?php
$from = $_POST['sendersname'];
$dayphone = $_POST['phonenumber'];
$eveningphone =$_POST['eveningphone'];
$sendersemail = $_POST['fromemail'];
$message = $_POST['message'];
$interests = $_POST['selectbox'];
$myemail = "me@domain.com";
$subject = "MY SUBJECT";
mail($myemail, $subject, $message, $from, $interests, $sendersemail, $dayphone, $eveningphone);
?>
Here is my error:
Warning: mail() expects at most 5 parameters, 8 given

Can anyone help me configure this script so it will send all the contents.

Thanks in advance.

Posted: Mon Sep 26, 2005 9:03 am
by ianhull
just had a thought.

would this work?


Code: Select all

$message = $dayphone . $eveningphone . $etc;

[SOLVED] Mail problem

Posted: Mon Sep 26, 2005 9:08 am
by ianhull
It worked.

Posted: Mon Sep 26, 2005 9:21 am
by shiznatix
glad we could help :lol: