i take it you mean one email per subscriber? not one for all 5000, then hide some content? cause you can't do the latter
it should be fairly easy to build the email and send it to 5000 users. Note that some isp's restrict the number of outgoing mail messages each user can send per second, to counter spam. If this is so, you may have to put a wait() in the php after each mail() call to slow down the send.
once each message is sent, it gets queued for sending at the smtp server - so if you send 5000 off at once, they may all appear to have gone and you can then sit back and they will all deliver eventually.
as far as building, you need to create a var for each section
$section1 = "This is the text for section1";
$section2 = "This is the text for section2";
etc etc. Then for each user, just pull in the relevant messages
$message = "";
if($section1subscribed){
$message .= $section1;
}
if($section2subscribed){
$message .= $section2;
}
etc etc then just send the message using mail()
adam