Here is my entire code I use to get GPG & PHP working together if anyone wants it.
$message .= "\nThis is line 1 of the message\n".
"This is line 2: - $variable1\n\n".
"This is line 3: - $variable2\n\n".
"This is line 4: - $variable3\n\n".
"Add more lines: - $variable4";
//set the environment variable for GNUPGPATH
putenv("/users/myaccount/.gnupg");
//generate token for unique filenames
$tmpToken = md5(uniqid(rand()));
//create vars to hold paths and filenames
$crypted = ("/users/myaccount/tmpdata/" . "$tmpToken" . "gpgdata");
$plainTxt = ("/users/myaccount/tmpdata/" . "$tmpToken" . "data");
//open file and dump in plaintext contents
$fp = fopen($plainTxt, "w+");
fputs($fp, $message);
fclose($fp);
//invoke GPG to encrypt file contents
system("export HOME=/users/myaccount ; /usr/bin/gpg --encrypt --no-secmem-warning -ao $crypted -r 'MyKey' $plainTxt");
//open file and read encrypted contents into var
$fd = fopen($crypted, "r");
$mail_cont = fread($fd, filesize($crypted));
fclose($fd);
//delete files!
unlink($plainTxt);
unlink($crypted);
// Build mail message and send it to target recipient.
$recipient = "user@domain.com";
$subject = "Encrypted Message";
$mailheaders .= "From: $forename $surname <$email>";
mail($recipient, $subject, $mail_cont, $mailheaders);
// Print confirmation to screen.
$feedback .= ' All Details Filled In Correctly ';