Just by taking a look at the code you posted, I see a problem here...
PHP Code:
$from = 'From: admin@blogengage.com' .
$subject="Welcome to BlogEngage" .
You cut off half of the original code, and you're ending the lines with a . (period) instead of a ; (semicolon).