jkkenzie Posted February 6, 2009 Share Posted February 6, 2009 I have the following line of code: class htmlMimeMail5 { /** * The html part of the message * @var string */ private $html; /** * The text part of the message(only used in TEXT only messages) * @private string */ private $text; I get the following error at the line with private $html; Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /mnt/w...... What could be the problem? Quote Link to comment https://forums.phpfreaks.com/topic/144038-solved-erro/ Share on other sites More sharing options...
gevans Posted February 6, 2009 Share Posted February 6, 2009 Can you show the whole page, there's no error in the syntax being shown Quote Link to comment https://forums.phpfreaks.com/topic/144038-solved-erro/#findComment-755836 Share on other sites More sharing options...
Mark Baker Posted February 6, 2009 Share Posted February 6, 2009 Check that you're running the script using PHP 5 and not PHP4 Quote Link to comment https://forums.phpfreaks.com/topic/144038-solved-erro/#findComment-755842 Share on other sites More sharing options...
jkkenzie Posted February 10, 2009 Author Share Posted February 10, 2009 I got another way out on sending htmls emails, I had to follow sitepoint rules and then i got a free template which i edited and i used php replace() function to replace images and some important texts then send my mail usin gphp mail() thanks, Joe Quote Link to comment https://forums.phpfreaks.com/topic/144038-solved-erro/#findComment-758745 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.