For some reason, using Enomcentral.com as my web host I can not get my php forms to mail to my box. I have installed phpmailer_5.2.1 and have edited my php.ini file to include the mailer. Below is my include path in my php.ini.
<?php
mail('jason@greenwaylawnmanagement.com','Test mail','The mail function is working!');
echo 'Mail sent!';
?>
It says mail sent yet I recieve nothing in my inbox?? So I thought mb I have to include the path and changed my code to this.
<?php
mail('jason@greenwaylawnmanagement.com','Test mail','The mail function is working!');
echo 'Mail sent!';
require("class.phpmail.php");
?>
Now this is the error I get....Still no mail in the mailbox.
Mail sent!PHP Fatal error: require() [function.require]: Failed opening required 'class.phpmail.php' (include_path='\class.phpmailer.php ') in E:\USERS\greenwaylawn\www\phptest.php on line 4
Is there anything else i need to change in my php.ini file or is there anything i need to change in the phpmailer file... plz help im so lost right now.
My question is did you already verified that class.phpmailer.php is there?
Second where is it? (I mean in what directory)
Now it seems to me that you are setting the path according to linux rules instead of windows rules, check that, I think you are not modifying the path correctly
Bookmarks