Jump to content

Recommended Posts

I been having issues with sending mail to yahoo, hotmail, live, etc when using the mail function in php. I researched and it says tha if I want to send mail to yahoo and others I have to use smtp auth. I looked all over on google to find a script that would work and so far, nothing. I tried scripts that use phpmailer and php pear. none work. any ideas for me? tutorials I don't know about? Anything would be great. Thanks!

Link to comment
https://forums.phpfreaks.com/topic/240241-php-mail-smtp-auth/
Share on other sites

alright so I installed all of php pear on my server. then I downloaded the pear package. I dropped Mail.php in my root and the two directories too. I try it out.. still won't display. Check the Mail.php and it requires a file called PEAR.php. where in the world is it? it doesn't come in any of the versions they offer for download. 

Link to comment
https://forums.phpfreaks.com/topic/240241-php-mail-smtp-auth/#findComment-1234078
Share on other sites

:facewall: everything is installed right now. files like Mail.php and PEAR.php are located /usr/share/php

inside my "sendthis.php" file it includes("/usr/share/php/Mail.php"); but when I go to the page to send the email it displays a server error.

 

HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.

 

sorry for so many replies lol I am trying to get this done asap because the registration page is down until I can send activation emails

Link to comment
https://forums.phpfreaks.com/topic/240241-php-mail-smtp-auth/#findComment-1234095
Share on other sites

so I assume I need to turn off safe mode. isn't that a security problem though?

Warning: include(): SAFE MODE Restriction in effect. The script whose uid is 2001 is not allowed to access /usr/share/php/Mail.php owned by uid 0 in /var/www/website/htdocs/mailme.php on line 6 Warning: include(/usr/share/php/Mail.php): failed to open stream: Not a directory in /var/www/website/htdocs/mailme.php on line 6 Warning: include(): Failed opening 'Mail.php' for inclusion (include_path='/usr/share/php/') in /var/www/website/htdocs/mailme.php on line 6 Fatal error: Class 'Mail' not found in /var/www/website/htdocs/mailme.php on line 20

how do I get this include path stuff fixed?

 

and just to be sure do I chmod 777 to Mail.php and others that are required?

Link to comment
https://forums.phpfreaks.com/topic/240241-php-mail-smtp-auth/#findComment-1234097
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.