This topic is locked

Email

2/20/2010 8:18:54 AM
PHPRunner General questions
F
fpilot author

The following code should send an email but its not! and am not sure why, can anybody help?
if($Email)

{
print "email found";// if record exists do something
$email="$Email";

$from="admin@ecommi.com";
$subject="New data record";
$ret=runner_mail(array('to' => $email, 'subject' => $subject, 'body' => $msg, 'from'=>$from));

if(!$ret["mailed"])

echo $ret["message"];

return true;

}

else

{

print "email not found";

// if dont exist do something else

}
}

Microe 2/20/2010

Where is $msg defined?

Extra }?
Is $Email the record or the address?
If it is the address I think I would eliminate $email also.



if($Email)

{
print "email found";// if record exists do something
$from="admin@ecommi.com";
$subject="New data record";
$ret=runner_mail(array('to' => $Email, 'subject' => $subject, 'body' => $msg, 'from'=>$from));

if(!$ret["mailed"])

echo $ret["message"];

return true;

}

else

}

print "email not found";

// if dont exist do something else

}
} // WHAT IS THIS Bracket Closing?