close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Error on php 5.4 for Pear Mail

Thread began 2/16/2015 4:34 pm by Larry | Last modified 4/06/2015 12:25 pm by Ray Borduin | 1595 views | 7 replies |

Larry

Error on php 5.4 for Pear Mail

Trying to use Pear Mail on Godaddy Cpanel. I am getting the following error

Fatal error: Class 'Net_SMTP' not found in /home/mores2015/php/Mail/smtp.php on line 349


It is installed though
Mail 1.2.0
Net_SMTP 1.6.2

Sign in to reply to this post

Jason ByrnesWebAssist

This is a hosting configuration issue not a WebAssist issue, you should contact GoDaddy support. they should be able to get Pear Mail configured correctly on your host for you.

Sign in to reply to this post

Larry

Will try that.
thanks

Sign in to reply to this post

CraigRBeta Tester

Hi Larry

Did you get any joy with godaddy ?

I just installed PEAR for a client and get the same error.

Their guy in customer support suggested it was an error in my script !!

Sign in to reply to this post

Larry

I was never able to get it to work. Godaddy hid behind they don't support 3rd party apps or something. We had to abandoned it and went different route.

Sign in to reply to this post

CraigRBeta Tester

Sounds Familiar

I just spent 1.5 hours on the phone to them.

I know the problem is at their end, if could debug it better...

php 5.4.37

UPDATE

Tried mail2 package and its associated files, but it looks as though PEAR_Mail_using_SMTP_php.php cant cope with this

Sign in to reply to this post

Ray BorduinWebAssist

You need to have both PEAR and NET_smtp installed on the server:

see:
http://pear.php.net/package/Net_SMTP/download
http://pear.php.net/package/Net_Socket/download

If you have shell access you can run:
sudo pear install Net_SMTP

Sign in to reply to this post

CraigRBeta Tester

thanks for the reply Ray

I have Mail, Net_SMTP, Net_Socket and Auth_SASL installed, (the other packages install by default on godaddy anyway).

I checked the server, the files seem to be there. the problem stems from line 349

$this->_smtp = &new Net_SMTP($this->host,



*UPDATE*

I checked the file locations compared to another host I use - just the same.

So I changed the file path in smtp.php on line 348 from relative to absolute

include_once 'Net/SMTP.php';



to

include_once '/absolutepath/Net/SMTP.php';



This gave me a different error about being unable to find Socket.php

So in SMTP.php I changed the path on line 22

from

require_once 'Net/Socket.php';



to

require_once '/absolutepath/Net/Socket.php';




This then reloads the page without errors. (and adds an entry to the email log), so all i had to do next was configure the port and username settings.

Success !! - but I won't be recommending godaddy as a host ;-(

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...