Jump to content

Send mail with attachment using PEAR - help!


jarv

Recommended Posts

hi, I am using this tutorial here: http://www.html-form-guide.com/email-form/php-email-form-attachment.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_webOCT/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 :

include_once('Mail.php');
include_once('Mail_Mime/mime.php');

 

to

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?!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.