dlc3172 Posted December 11, 2012 Share Posted December 11, 2012 Hi All - I'm not a programmer whatsoever. Just trying to implement a login/registration system into my web site. I've purchased a script that does what I need. However, after installing the script, I'm finding that it refuses to send email like it should (i.e., send confirmation email to new users; send forgotten password email, etc.). My hosting service is Yahoo. Yahoo's help section says this about sending email with PHP: "You will also need to indicate the path to the Yahoo! mail program, Sendmail. The path to Sendmail is /usr/sbin/sendmail." I honestly have no idea where or how I'm supposed to put this into the code. I'm hoping someone can help me. I've attached two files, one is the sign-up.php file. The other is called signup.class.php, and I think this is where the mail gets sent from. But I'm not positive. Can anyone help? Much appreciated!!! sign_up.php signup.class.php Quote Link to comment https://forums.phpfreaks.com/topic/271848-need-help-sending-email-with-php/ Share on other sites More sharing options...
MDCode Posted December 11, 2012 Share Posted December 11, 2012 Yahoo should be automatically setting up the path...if not you, need a new host. Quote Link to comment https://forums.phpfreaks.com/topic/271848-need-help-sending-email-with-php/#findComment-1398670 Share on other sites More sharing options...
dlc3172 Posted December 11, 2012 Author Share Posted December 11, 2012 Yahoo should be automatically setting up the path...if not you, need a new host. I thought Yahoo was saying that I needed to add "usr/sbin/sendmail" to my php code. No?? Quote Link to comment https://forums.phpfreaks.com/topic/271848-need-help-sending-email-with-php/#findComment-1398770 Share on other sites More sharing options...
Jessica Posted December 12, 2012 Share Posted December 12, 2012 Change it in your PHP.ini http://php.net/manual/en/mail.configuration.php Quote Link to comment https://forums.phpfreaks.com/topic/271848-need-help-sending-email-with-php/#findComment-1398826 Share on other sites More sharing options...
dlc3172 Posted December 12, 2012 Author Share Posted December 12, 2012 Thank you Jessica. I am assuming php.ini is a file that lives somewhere in my account on my host's server? Quote Link to comment https://forums.phpfreaks.com/topic/271848-need-help-sending-email-with-php/#findComment-1398906 Share on other sites More sharing options...
happypete Posted December 18, 2012 Share Posted December 18, 2012 This is your second thread with problems receiving email. The script in the previous thread uses the mail() function so send email, it may be your web host has disabled it for security reasons. My current web host disabled it on their servers a year ago so I chnaged to use SMTP with PHPMailer: http://forums.phpfreaks.com/topic/268115-make-a-php-contact-form-use-smtp/ Quote Link to comment https://forums.phpfreaks.com/topic/271848-need-help-sending-email-with-php/#findComment-1399985 Share on other sites More sharing options...
Stilter Posted December 28, 2012 Share Posted December 28, 2012 Somewhere in the script you have purchased there will be a line that sets a variable to the path to 'sendmail'. Hopefully, there will be some notation in the script to give you a clue. In the script I have(phpmailer) the variable is $Sendmail and the notation (surrounded by comment tags /* notes */) says; "Sets the path to sendmail program." Different servers will have slightly different directory names in the path. Make sure you copy it exactly. Quote Link to comment https://forums.phpfreaks.com/topic/271848-need-help-sending-email-with-php/#findComment-1401849 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.