Solution:
The error is caused by a missing single quote.
Incorrect:
$address = ‘yourmail@gmail.com;
Correct:
$address = ‘yourmail@gmail.com’;
Make sure the string is properly enclosed in quotes.