send email with account information in a echo

Hi all am a couple of hours f**ing with this script and get it done, it should send an email notification to me & have the user ID there, how do I do this?
[php]<?php $valuecredits = $account[‘credits’];
if ( $valuecredits >= “10” ) {
echo “

”;
$to = ‘info@…com’;
$subject = ‘subject mail’;
$body = ’ echo $account[‘customers_id’]; got … ! mail’;
if (mail($to, $subject, $body)) {
echo('

your request has been sent!

');
} else {
echo(‘

Message delivery failed…

’);
}
}
?>[/php]This does not work

For 1, it helps if we can see all your code.

Second: in your $body, why are you asking it to echo in the text? try
$body = $account[‘customers_id’]." got … ! mail";

Sponsor our Newsletter | Privacy Policy | Terms of Service