if statement in PhP code?

  • Thread starter Thread starter Adedoyin A
  • Start date Start date
A

Adedoyin A

Guest
How do i write a php code that emails an evaluation to me if Q8 is a Yes.
I tried this But it didn't work, any help please I'm totally new to this
if ($Q8) == Yes)
{
$sendMailTo .= "[email protected]";
}
 
First of all, you use the mail() function. Secondly, the input to that function has to be a MIME-written string. Third, PHP has to have a mail function enabled, which means you also need to have access to an SMTP server (download the free MailEnable program... you can send emails directly from your home computer, even through Outlook)
 
Back
Top