Tom, I think I know what you mean !
Is the following correct ?
<? // test1.php
$subjet="exec test";
$Fname=Robert;
$Lname=Johnson;
$Addr="2 any street";
$City="My Town";
$message1=$subject;
$message2= "fname = $Fname\rlname = $Lname\r";
$message3= "Addr: $Addr\r\nCity:$City\n";
$message4= "This message was generated by my test\n";
// execute test2.php in background while test1.php continues
exec("/usr/bin/php /home/www/test2.php
$message1 $message2 $message3 $message4");
//script continues ......
?>
<? // test2.php
@mail("test@mydomain.com","$message[0]", "$message[1] $message[2] $message[3]$message[4]", "From: MyTestSite@mydomain.com");
?>
Thanks,
Peter