Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8800841
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T00:41:45+00:00 2026-06-14T00:41:45+00:00

I am trying to modify a TemplateMonster template that uses PHP to email data

  • 0

I am trying to modify a TemplateMonster template that uses PHP to email data from a form. It uses localhost as the email server by default, but my client already uses gmail’s mail exchange servers and likes it that way. I am using the code from the top answer in this question: SO question

I think I have it all set up pretty well, except that the host installs PEAR and PHP to a predefined folder and I am working on a subdomain. I am getting errors about not being able to find mail.php although I have modified php.ini to try to include the correct path. Here is my error (with a few name changes to protect privacy of my client):

[08-Nov-2012 10:52:15] PHP Warning: require_once(../../mail.php) [function.require-once]: failed to open stream: No such file or directory in /home6/clientname/public_html/subdomainname/bin/contactFormHandler.php on line 3
[08-Nov-2012 10:52:15] PHP Fatal error: require_once() [function.require]: Failed opening required ‘../../mail.php’ (include_path=’.:/usr/lib64/php:/usr/lib/php:/usr/share/pear:/usr/php’) in /home6/clientname/public_html/subdomainname/bin/contactFormHandler.php on line 3

And here is the tree:
/home6/clientname/php/mail.php is the file I am trying to include
/home6/clientname/public_html/subdomainname/bin/contactFormHandler.php is the file that is throwing the error

And here is my code from contactFormHandler.php that is the include:
require_once “mail.php”;

I have tried various iterations such as “../../../php/mail.php” to no avail. Any suggestions on what I need to do so that the PHP file on the subdomain can “see” the PEAR files I am trying to include?

Thank you!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T00:41:47+00:00Added an answer on June 14, 2026 at 12:41 am

    Try Mail.php instead of mail.php

    the filename for the PEAR package is Mail.php and Unix/Linux systems are case-sensitive.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to modify a serial program that reads from a database, and writes
I'm trying to modify my GreaseMonkey script from firing on window.onload to window.DOMContentLoaded, but
I'm trying to modify a C# WinForms application that uses multiple forms. At startup,
I'm trying to modify a variable from a form. I want to get rid
I'm trying to modify an svg tag with javascript to make it resizable, but
I am trying to modify an Integer field on existing table from nullable to
I am trying to modify the script below to click a button that looks
I am trying to modify the code below to check the input from a
i am trying to modify one js file validation rule but unable to do
I am trying to modify Apple's PhotoScroller example and I encountered a problem that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.