Parse error: syntax error, unexpected '@' in php code
Parse error: syntax error, unexpected '@' in C:\xampp\htdocs\minippro\mail.php on line 8 .......its not recognizing the '@' symbol. im a beginner in php so plz do help out. heres the code im working with
<?php $receiver = myfriend@ourmail.co.in; $subject = wish; $content = Hi! My dear friend how are you.; $sender = myself@ ourmail.co.in ; $headers = From: $sender; mail($receiver,$subject, $content,$headers); echo Mail has been sent successfully.; ?> |
Try using double quotes around your variable values.
Code:
$receiver = "myfriend@ourmail.co.in"; |
All times are GMT -5. The time now is 09:07 AM. |