Nostrosvostros Posted May 22, 2012 Share Posted May 22, 2012 Being fresh to PHP I installed PHPMailer (Not sure how to install classes so what I did is I dropped the PHPMailer files into my PEAR folder since that's where all my extensions are being sent to in XAMPP). Then I ran a basic script to send email via PHPMailer using the functions offered by PHPMailer instead of Mail() (of course) but when I do that and execute my code by going to localhost my Firefox will just display my PHP code right back at me. Quote Link to comment https://forums.phpfreaks.com/topic/262914-im-trying-to-setup-phpmailer-on-xampp-could-you-guys-give-me-pointers/ Share on other sites More sharing options...
trq Posted May 22, 2012 Share Posted May 22, 2012 Are you using the full <?php ?> tags? Quote Link to comment https://forums.phpfreaks.com/topic/262914-im-trying-to-setup-phpmailer-on-xampp-could-you-guys-give-me-pointers/#findComment-1347582 Share on other sites More sharing options...
Nostrosvostros Posted May 22, 2012 Author Share Posted May 22, 2012 What do you mean by that? The entire .php file is only code between 2 PHP tags. Quote Link to comment https://forums.phpfreaks.com/topic/262914-im-trying-to-setup-phpmailer-on-xampp-could-you-guys-give-me-pointers/#findComment-1347586 Share on other sites More sharing options...
trq Posted May 22, 2012 Share Posted May 22, 2012 I mean are you using the complete <?php // code here ?> tags and not just <? // code here ?> Quote Link to comment https://forums.phpfreaks.com/topic/262914-im-trying-to-setup-phpmailer-on-xampp-could-you-guys-give-me-pointers/#findComment-1347587 Share on other sites More sharing options...
Nostrosvostros Posted May 22, 2012 Author Share Posted May 22, 2012 Yes, I'm thinking that it might be that I don't know how to setup the library since it's in XAMPP and I don't have a /libs/ folder. Quote Link to comment https://forums.phpfreaks.com/topic/262914-im-trying-to-setup-phpmailer-on-xampp-could-you-guys-give-me-pointers/#findComment-1347599 Share on other sites More sharing options...
trq Posted May 22, 2012 Share Posted May 22, 2012 There is nothing special about setting up php libraries. You just need to put them on your include path, which the PEAR directory should already be on. If it is producing php code then something in your server is misconfigured. Quote Link to comment https://forums.phpfreaks.com/topic/262914-im-trying-to-setup-phpmailer-on-xampp-could-you-guys-give-me-pointers/#findComment-1347803 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.