I have this chunk of code below to mail a user. The email body itself is in a text file titled "body.txt". Can anyone give some code so that I can have the script read and process this text file then allow it to be inserted where the $body tag is?
/ recipients /
$recipient = '$firstname $lastname <$email>';
/ subject /
$subject = 'Your MacVillage.net Account';
/ additional header pieces for errors, From cc's, bcc's, etc /
$headers .= 'From: Account Manager <accountmanager@macvillage.net>\n';
$headers .= 'X-Sender: <accountmanager@macvillage.net>\n';
$headers .= 'X-Mailer: MacVillage.net Backend\n';
$headers .= 'Return-Path: <accountmanager@macvillage.net>\n'; // Return path for errors
$headers .= 'Content-Type: multipart/alternative\n';
$headers .= 'boundary="___BoundaryOfDocument___"';
@mail($email, $subject, $body, $headers);
}
return 2;
}