Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Banned
    Join Date
    Mar 2007
    Posts
    1,523
    Thanks
    116
    Thanked 0 Times in 0 Posts

    Question Can't find PEAR Mail and Mail_Mime?

    hi, I am using this tutorial here: http://www.html-form-guide.com/email...ttachment.html

    I have uploaded the relevant files for sending mail and installed PEAR, see: http://www.edisongray.com/index.php

    and my site here: http://www.edisongray.com/edisongray...T/contact.html

    When I go to test my contact form i get an error:
    Warning: include_once(./PEAR/mail/Mail.php) [function.include-once]: failed to open stream: No such file or directory in /home/fhlinux129/e/edisongray.com/user/htdocs/edisongray_webOCT/send-email-form.php on line 4

    Warning: include_once() [function.include]: Failed opening './PEAR/mail/Mail.php' for inclusion (include_path='.:/usr/share/pear-php5') in /home/fhlinux129/e/edisongray.com/user/htdocs/edisongray_webOCT/send-email-form.php on line 4

    Warning: include_once(./PEAR/mail/mime.php) [function.include-once]: failed to open stream: No such file or directory in /home/fhlinux129/e/edisongray.com/user/htdocs/edisongray_webOCT/send-email-form.php on line 5

    Warning: include_once() [function.include]: Failed opening './PEAR/mail/mime.php' for inclusion (include_path='.:/usr/share/pear-php5') in /home/fhlinux129/e/edisongray.com/user/htdocs/edisongray_webOCT/send-email-form.php on line 5

    Warning: copy(./uploads/0.jpg) [function.copy]: failed to open stream: No such file or directory in /home/fhlinux129/e/edisongray.com/user/htdocs/edisongray_webOCT/send-email-form.php on line 66

    Fatal error: Class 'Mail_mime' not found in /home/fhlinux129/e/edisongray.com/user/htdocs/edisongray_webOCT/send-email-form.php on line 81

    I changed my mail and mail_mime paths from :
    Code:
    Code:
    include_once('Mail.php');
    include_once('Mail_Mime/mime.php');
    to
    Code:
    Code:
    include_once('./PEAR/mail/Mail.php');
    include_once('./PEAR/mail/mime.php');
    but I think it's wrong?! when I installed mail and mail_mime, I couldn't see directries anywhere?!

  • #2
    New to the CF scene
    Join Date
    Nov 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Maybe your include_path is not setup properly. You can get the current path by calling get_include_path() and set it by using set_include_path()


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •