Hello Fabian! Try this: <? // strings, set by your form $mail_from ="[EMAIL PROTECTED]"; $subject = "Your Subject"; $body = "Some text here";
// receiptient of the mail $mail_to = "[EMAIL PROTECTED]"; // let's rock... $extra_header = "From: $mail_from\nErrors-To: [EMAIL PROTECTED]"; mail($get_email, $subject, $body, $extra_header); ?> Works fine for me, should work for you, too. Be carefull with $extra_header. If you forget a blankspace or an \n, it won't work. More Infos at: http://www.php.net/manual/en/function.mail.php (German: http://www.php.net/manual/de/function.mail.php ) Karsten > I have made a php formmailer! > > My Problem: > When I receive the mail, in the from(sender) line is something like > www-data, but I wont the real sender adress for example > [EMAIL PROTECTED] in > the from line not in the subject line or in the message, just > in the from > line! > > Fabian Hoffmann -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]