All pastes #29632 Raw Edit

Mine

public text v1 · immutable
#29632 ·published 2005-11-20 16:22 UTC
rendered paste body
$headers = "From: internal site <site@internal.com>\n
	   X-Mailer: PHP/";
$email_address="to@me.com";
      $subject="Test of form entry";
	  $message="Agent form 

They entered the following information

First Name 1: $firstname1
Surname 1: $surname1
Year of birth 1: $birth1

more info here";
     
    if (mail($email_address, $subject, $message, $headers . phpversion())) {
	echo "Mail was sent to $email_address"; 
	}
	else {
	echo "there was a problem sending the mail...";
	}