Hi guys ive got a problem with my mail() function.
if(mail('$email', 'test', 'test message'))
{
echo('ok');
}
else
{
echo('not ok');
}
im trying to test this out.
ive tried manually inputting the email e.g. 12345@hotmail.com
the email is sent and i can receive it.
However, when i replace it with $email, the email is not sent.
when i echo $email it does show 12345@hotmail.com
what am i doing wrong?
Thanks
Danny