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:
<?php set_include_path("." . PATH_SEPARATOR . ($UserDir = dirname($_SERVER['DOCUMENT_ROOT'])) . "/pear/php" . PATH_SEPARATOR . get_include_path()); include 'Mail.php'; I try and create the instance of Mail with Mail::factory(), with of course my parameters. And my .bash_profile is as follows: umask 002 PS1='[\h]$ ' export PHP_PEAR_PHP_BIN=/usr/local/php5/bin/php export PATH=${HOME}/pear:/usr/local/php5/bin:${PATH} Where am I going wrong? Thanks.