I'm having the worst time trying to get Pear's mail module working with my site. I've followed the instructions in this wiki article: http://wiki.dreamhost.com/PEAR
But am getting the following error:
Parse error: syntax error, unexpected T_VARIABLE in /home/weightlossthroughyoga/weightlossthroughyoga.com/mail.php on line 26
Which, I assume, means the mail module is not loading correctly.
I'm trying to include Pear Mail using these:
set_include_path("." . PATH_SEPARATOR . ($UserDir = dirname($SERVER['DOCUMENTROOT'])) .
"/pear/php" . PATH_SEPARATOR . get_include_path());
I try and create the instance of Mail with Mail::factory(), with of course my parameters.
And my .bash_profile is as follows:
Where am I going wrong?