phpsycho Posted June 23, 2011 Share Posted June 23, 2011 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! Quote Link to comment https://forums.phpfreaks.com/topic/240241-php-mail-smtp-auth/ Share on other sites More sharing options...
phpsycho Posted June 23, 2011 Author Share Posted June 23, 2011 I am trying pear again.. I installed it on my server and I still can't use it. I go to the page with the email script that uses pear and it just says error can't display webpage. I can access any other page though. Quote Link to comment https://forums.phpfreaks.com/topic/240241-php-mail-smtp-auth/#findComment-1234066 Share on other sites More sharing options...
phpsycho Posted June 23, 2011 Author Share Posted June 23, 2011 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. Quote Link to comment https://forums.phpfreaks.com/topic/240241-php-mail-smtp-auth/#findComment-1234078 Share on other sites More sharing options...
phpsycho Posted June 23, 2011 Author Share Posted June 23, 2011 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 Quote Link to comment https://forums.phpfreaks.com/topic/240241-php-mail-smtp-auth/#findComment-1234095 Share on other sites More sharing options...
phpsycho Posted June 23, 2011 Author Share Posted June 23, 2011 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? Quote Link to comment https://forums.phpfreaks.com/topic/240241-php-mail-smtp-auth/#findComment-1234097 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.