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

Path to PEAR

Thread began 5/26/2013 2:27 am by teresa328019 | Last modified 5/29/2013 2:38 pm by Jason Byrnes | 701 views | 11 replies |

teresa328019

Path to PEAR

I've installed PEAR on my server and installed the Mail PHP extension. I am having trouble figuring out how to get the path to PEAR.
I followed this page for installing PEAR on my server, inmotion hosting.
http://www.inmotionhosting.com/support/website/cpanel/how-to-install-a-pear-module
Then I installed Mail.
http://www.inmotionhosting.com/support/website/how-to/install-pear-extensions

The problem is figuring out what my Path to Pear should be.

These are the errors I'm getting:
Warning: require_once(../../phpMail.php) [function.require-once]: failed to open stream: No such file or directory in /home/sisosm5/public_html/webassist/email/PEAR_Mail_using_SMTP_php.php on line 115

Fatal error: require_once() [function.require]: Failed opening required '../../phpMail.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/sisosm5/public_html/webassist/email/PEAR_Mail_using_SMTP_php.php on line 115

Sign in to reply to this post

teresa328019

My php.ini in the server did not appear to be including the php folder where Net_SMTP as installed.

Inmotion added this to be included.
Changed
include_path = ".:/usr/lib/php:/usr/local/lib/php"
to
include_path = ".:/home/sisosm5/php:/usr/lib/php:/usr/local/lib/php"

I'm not getting any errors anymore but the page is taking a really REALLY long time to submit and I'm not getting the form sent to my email. It is going to the thankyou.php page.

Sign in to reply to this post

Jason ByrnesWebAssist

add the following code to the thank you page, it will write the session contents and include details of whether the email is being passed to the SMTP Server:

php:
<?php @session_start(); var_dump($_SESSION); ?>
Sign in to reply to this post

teresa328019

see private message

Sign in to reply to this post

Jason ByrnesWebAssist

The Connection to the ftp server is failing:
Sending To: supportedindependence@sisocare.com... 10001 - Failed to connect to secure46.inmotionhosting.com:465 [SMTP: Invalid response code received from server (code: -1, response: )] - Failure


it is giving a response code of -1.

you will need to contact the host to determine why connecting to the SMTP server is not working.

Sign in to reply to this post

teresa328019

I've contacted inmotion hosting and they told me it was a coding issue. Not an issue with the server. The contact form located at http://sisocare.com/contact.php works fine. But the form at http://sisocare.com/applicationform2.php is having issues. I have no idea what the problem is or why one form would work and another won't.

Sign in to reply to this post

Jason ByrnesWebAssist

well, the contact.php page is not using Pear Mail for SMTP, it is using the standard mail() function to send the emails. in the WA_Globals/WA_Globals.php file what is being used for the SMTP server?

Use the same setting in Universal Email and set the mail object to use mail instead of Pear Mail.

Sign in to reply to this post

teresa328019

I tried that. These are the errors:

Notice: Undefined index: waue_applicationform_1_Error in /home/sisosm5/public_html/webassist/email/mail_php.php on line 298

Notice: Undefined index: waue_applicationform_1_Status in /home/sisosm5/public_html/applicationform2.php on line 170

Notice: Undefined index: waue_applicationform_1_Index in /home/sisosm5/public_html/applicationform2.php on line 171

Notice: Undefined index: waue_applicationform_1_From in /home/sisosm5/public_html/applicationform2.php on line 172

Notice: Undefined index: waue_applicationform_1_To in /home/sisosm5/public_html/applicationform2.php on line 173

Notice: Undefined index: waue_applicationform_1_Subject in /home/sisosm5/public_html/applicationform2.php on line 174

Notice: Undefined index: waue_applicationform_1_Body in /home/sisosm5/public_html/applicationform2.php on line 175

Notice: Undefined index: waue_applicationform_1_Header in /home/sisosm5/public_html/applicationform2.php on line 176

Notice: Undefined index: waue_applicationform_1_Log in /home/sisosm5/public_html/applicationform2.php on line 177

Warning: Cannot modify header information - headers already sent by (output started at /home/sisosm5/public_html/webassist/email/mail_php.php:298) in /home/sisosm5/public_html/applicationform2.php on line 180

Attached Files
WA_Globals.php
Sign in to reply to this post

Jason ByrnesWebAssist

Originally Said By: teresa328019
  I tried that. These are the errors:

Notice: Undefined index: waue_applicationform_1_Error in /home/sisosm5/public_html/webassist/email/mail_php.php on line 298

Notice: Undefined index: waue_applicationform_1_Status in /home/sisosm5/public_html/applicationform2.php on line 170

Notice: Undefined index: waue_applicationform_1_Index in /home/sisosm5/public_html/applicationform2.php on line 171

Notice: Undefined index: waue_applicationform_1_From in /home/sisosm5/public_html/applicationform2.php on line 172

Notice: Undefined index: waue_applicationform_1_To in /home/sisosm5/public_html/applicationform2.php on line 173

Notice: Undefined index: waue_applicationform_1_Subject in /home/sisosm5/public_html/applicationform2.php on line 174

Notice: Undefined index: waue_applicationform_1_Body in /home/sisosm5/public_html/applicationform2.php on line 175

Notice: Undefined index: waue_applicationform_1_Header in /home/sisosm5/public_html/applicationform2.php on line 176

Notice: Undefined index: waue_applicationform_1_Log in /home/sisosm5/public_html/applicationform2.php on line 177

Warning: Cannot modify header information - headers already sent by (output started at /home/sisosm5/public_html/webassist/email/mail_php.php:298) in /home/sisosm5/public_html/applicationform2.php on line 180  
Sign in to reply to this post

teresa328019

ok

Sign in to reply to this post
loading

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...