Jump to content

Need Help Sending Email With Php


dlc3172

Recommended Posts

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

Link to comment
Share on other sites

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/

Link to comment
Share on other sites

  • 2 weeks later...

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.

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.