ArtbyPatrick Posted August 8, 2013 Share Posted August 8, 2013 Hello everyone, I wasn't sure where exactly to post this question but here it is. I have been working on trying to get an online form to be able to send email to my customer. It worked before until early last month. I've checked a lot of forums on the question, installed PEAR packages, Net packages, reworked the Mail.php file, I tryed using sendmail, that did not work either. My customer want's to be able to use SMTP. I know that I am missing something but I am not sure what as my PHP is in its beginning stages. Can someone help me? thx in advance Link to comment Share on other sites More sharing options...
justsomeguy Posted August 8, 2013 Share Posted August 8, 2013 If you're trying to use PEAR Mail, it sounds like you don't have Net_SMTP installed. Link to comment Share on other sites More sharing options...
ArtbyPatrick Posted August 8, 2013 Author Share Posted August 8, 2013 (edited) it is actually, its in the net folder. Unless there is something besides putting it in a folder that I need to do Edited August 8, 2013 by ArtbyPatrick Link to comment Share on other sites More sharing options...
justsomeguy Posted August 8, 2013 Share Posted August 8, 2013 There might be an issue with the include path. If the error message says that it can't find the class, then it can't find it for some reason. Maybe it's not looking in the right place. Link to comment Share on other sites More sharing options...
thescientist Posted August 8, 2013 Share Posted August 8, 2013 what changed from when it worked, to when it stopped working? what kind of error messages did you get when it stopped working? Link to comment Share on other sites More sharing options...
ArtbyPatrick Posted August 9, 2013 Author Share Posted August 9, 2013 I moved some stuff around for the includes and this is what I get as error messages: Warning: include_once(Net/SMTP.php) [function.include-once]: failed to open stream: No such file or directory in /home/content/U/n/i/UnisonDigital/html/includes/classes/Mail/smtp.php on line 348Warning: include_once() [function.include]: Failed opening 'Net/SMTP.php' for inclusion (include_path='.:/usr/local/php5/lib/php') in /home/content/U/n/i/UnisonDigital/html/includes/classes/Mail/smtp.php on line 348Fatal error: Class 'Net_SMTP' not found in /home/content/U/n/i/UnisonDigital/html/includes/classes/Mail/smtp.php on line 349 in Mail/smtp.php line 348 and 349 read: include_once 'Net/SMTP.php'; $this->_smtp = &new Net_SMTP($this->host, $this->port, $this->localhost); is the Net folder to be in the Mail folder or should it be out? Link to comment Share on other sites More sharing options...
justsomeguy Posted August 9, 2013 Share Posted August 9, 2013 It's not Mail_Net_SMTP, so I don't think it should be inside the Mail folder. Link to comment Share on other sites More sharing options...
ArtbyPatrick Posted August 12, 2013 Author Share Posted August 12, 2013 Yeah I didn't think so either. But I still get that error message, I do not know why the folder cannot be found. Those are in the include/class/ folder is that the right location for it to be? Link to comment Share on other sites More sharing options...
justsomeguy Posted August 12, 2013 Share Posted August 12, 2013 It doesn't matter where you install Pear as long as PHP's include path is correct and points to it. http://pear.php.net/manual/en/installation.checking.php Link to comment Share on other sites More sharing options...
ArtbyPatrick Posted August 13, 2013 Author Share Posted August 13, 2013 According to the link, I have to chenge the php5.ini, I changed it but it doesnt seem to work: here is what I get as a message now: Warning: require(includes/configure.php) [function.require]: failed to open stream: No such file or directory in /home/content/U/n/i/UnisonDigital/html/includes/application_top.php on line 29Fatal error: require() [function.require]: Failed opening required 'includes/configure.php' (include_path='.;C:phppear') in /home/content/U/n/i/UnisonDigital/html/includes/application_top.php on line 29 had to remove it because the whole site was down now what am I doing wrong? Link to comment Share on other sites More sharing options...
justsomeguy Posted August 13, 2013 Share Posted August 13, 2013 I can't tell what you're doing wrong, I don't know what you changed in php.ini. Is the include path correct? I've mentioned the include path a couple times, have you verified what it is set to and that it includes the path to Pear? Link to comment Share on other sites More sharing options...
ArtbyPatrick Posted August 15, 2013 Author Share Posted August 15, 2013 I got it working, it was a path issue, thanks for your help Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now