View Single Post
  #2 (permalink)  
Old 06-29-03, 07:06 AM
ChristGuy ChristGuy is offline
Operations Support Develo
 
Join Date: Jun 2003
Location: Rivonia, South Africa
Posts: 111
Thanks: 0
Thanked 0 Times in 0 Posts
The manual page can be found here:
http://www.php.net/mail

basically
Mail($Recipient, $Subject, $Message, $ExtraHeaders);

PHP Code:

<?php

  $From 
"me@here.com";
  
$Recipient "john.doe@domain.com";
  
$Subject "Testing...";
  
$Message "This is a test message\n"
  
$Message .= "It's only a test...";

  
$ExtraHeaders 'Date: ' Date("r");
  
$ExtraHeaders .= 'From: ' $Sender;

  
Mail($Recipient$Subject$Message$ExtraHeaders) or
    Die(
"Error sending mail :(");
?>
Hope this helps...
__________________
Till We Meet Again...
Clifford W. Hansen
Aspivia (Pty) Ltd

"We Have Seen Strange Things Today!" Luke 5:26

Last edited by ChristGuy; 06-29-03 at 07:08 AM.
Reply With Quote