Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Jan 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Registration Script Snafu

    Hello Forum Members,
    New to PHP, I've had problems finding the problem with a script developed to process new user registrations at a client website. The script is intended to accomplish the following:

    1. New user registers for access to member section of site.
    2. Activation email is sent to new registrant.
    3. A copy of the new registration is sent to 2 owners of the client site.

    Numbers 1 and 2 above work perfectly. Number 3 does not work. The owners of the site are not receiving messages that someone has signed up.

    I've attached a copy of the script, substituting the client domain name with "clientdomainname.com" and "client_1@clientdomainname.com" and "client_2@clientdomainname.com".

    Can anyone see the problem?

    Thank you.
    Attached Files Attached Files

  • #2
    Senior Coder
    Join Date
    Jan 2007
    Posts
    1,648
    Thanks
    1
    Thanked 58 Times in 54 Posts
    What have you done to diagnose the problem yourself?

    Does the actual code run. Are the emails being blocked (spam)? Etc.

    I don't want to assume, but if you are posting an entire script it doesn't seem like a lot of effort went into debugging. One should really only post relevant code.

  • #3
    New to the CF scene
    Join Date
    Jan 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Registration script snafu

    Hello aedrin,

    What have you done to diagnose the problem yourself?
    From my original post:
    New to PHP
    Does the actual code run. Are the emails being blocked (spam)? Etc.
    The code runs, the emails are not being blocked.

    From my originial post:
    Numbers 1 and 2 above work perfectly.
    So wouldn't you assume the actual code runs from this statement?

    I don't want to assume, but if you are posting an entire script it doesn't seem like a lot of effort went into debugging. One should really only post relevant code.
    From my original post:
    New to PHP
    The coder for this script left the company for greener pastures. He has not yet been replaced. The effort I'm exerting for debugging consists of scouring the forums to see if I can get expert advice on this. Although I appreciate your response, your gentle scolding seems non-sequitor for someone new to PHP.

    Thanks,
    themuse

  • #4
    Senior Coder
    Join Date
    Jan 2007
    Posts
    1,648
    Thanks
    1
    Thanked 58 Times in 54 Posts
    I'm just weary of users coming in saying X does not work, please solve. Without any suggestion of work being done by themself.

    This forum works better when questions are posted as 'Feature X does not work, here is the code that is not executing properly. I have done Y and Z, but it still does not work. I couldn't find anything on google/forum search.'

    So wouldn't you assume the actual code runs from this statement?
    That would be a mistake. Never assume that code is running.

    2. Activation email is sent to new registrant.
    3. A copy of the new registration is sent to 2 owners of the client site.
    I hadn't yet read the code (for obvious reasons) so it was not my understanding that the code for #3 preceded #2.

    Although I appreciate your response, your gentle scolding seems non-sequitor for someone new to PHP.
    New is a relative term, and usually people have some sort of programming background.

    It probably would've helped for you to indicate that you are not the designated person that handles this duty normally, and that you are not the author of the code. This gives us more information on what level of help to give.


    The code in the script is older. Some things are probably not done as they should, but they will still work. (Just as an FYI)

    Have you tried turning on error reporting? The code may be generating errors that are not known.

    Have you checked the Apache error log? (in case you are using Apache)

    If you are positive the code that sends out #3 runs (you can never be too sure), then it sounds like a problem with mail. Have you checked your email server (Exchange, sendmail, etc.) to see if it has a log of attempting to send the mail?

  • #5
    New to the CF scene
    Join Date
    Jan 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hello aedrin,
    Thank you for the reply. I understand your weariness.

    I'm working as a freelance web designer at the company I mentioned in my post. They called me in after the other guy, who wrote that code, took off for another job. As a result, I don't have control over their servers, but I'll pass on your recommendations to them and see if it helps them. I do know that they are using apache.

    My only experience with PHP comes from analyzing scripts in various open source offerings like "Zen Cart" and "Coppermine" when adding those extras to client sites. When analyzing, I enjoy the logic of PHP. It's on my list of new tricks for old dogs.

    Best wishes,

    themuse

  • #6
    New to the CF scene
    Join Date
    Jan 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I think it is the mail server's problem, you can try mail via SMTP PHP function


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •