Email issue
Posted: Mon Sep 26, 2005 9:01 am
Hi Guys,
I have another little issue here, never used the mail function beofre and I tried this.
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.
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);
?>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.