RTFM!

mail($email_address,$subject,$message,$header);

You can use @mail to supress any errors produced.

Example:

@mail("[EMAIL PROTECTED]","This is a Test","My Message","From: James
<[EMAIL PROTECTED]>");

Look at: http://uk.php.net/manual/en/ref.mail.php

- James
www.LondonTown.com


-----Original Message-----
From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]]
Sent: 29 May 2002 15:58
To: [EMAIL PROTECTED]
Subject: [PHP] mail() function


I want to write a simple script that sends an e-mail message using PHP.

I'm assuming that my web-host has the mail function hooked up to the
e-mail server (should I be assuming this or should I assume that it's
NOT hooked up?).

What is the syntax  for this command?

something like this... ? (assuming that the variables contain the
proper data)

mail($contactemail, $subject, $message, $headers);

THANKS!!


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

Reply via email to