> Hi
> can anyone quickly run through how to use php to send the contents of a
> form via e-mail using sendmail? How do you begin?
> thanks

I use this (omitting error checking):

$message = "Name: $name\nAddress: $address\n";
mail("[EMAIL PROTECTED]", "Message Subject", $message, "From: $email");

This assumes that name, address, and email are form variables that the user

See http://www.php.net/manual/en/function.mail.php for more information
about mail();

Josh Trutwin

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to