Author |
Message |
synchro
New Member


Joined: May 24, 2006
Posts: 16
|
Posted:
Mon Oct 30, 2006 9:09 pm |
|
Ok all of a sudden no new users can create an account due to no email being sent to them and the feed back doesn't send me email. I have a total different installation installed and it seems like that one is doing the same thing two. Any idea's why this would happen? |
|
|
|
 |
evaders99
Former Moderator in Good Standing

Joined: Apr 30, 2004
Posts: 3221
|
Posted:
Tue Oct 31, 2006 12:14 am |
|
Perhaps your host did some server changes? They must have the PHP mail() function enabled and working correctly
http://www.php.net/mail |
_________________ - Only registered users can see links on this board! Get registered or login! -
Need help? Only registered users can see links on this board! Get registered or login! |
|
|
 |
synchro

|
Posted:
Wed Nov 01, 2006 2:02 am |
|
I would think they would have done that at godaddy.com???? |
|
|
|
 |
kguske
Site Admin

Joined: Jun 04, 2004
Posts: 6437
|
Posted:
Sun Nov 05, 2006 9:31 pm |
|
Do you see any messages in your error log about the mail function not working? Did you receive the email in a spam box?
Sometimes hosts make changes that affect PHP applications without notifying their clients. If godaddy.com is your host, you should definitely check with them. |
_________________ I search, therefore I exist...
Only registered users can see links on this board! Get registered or login! |
|
|
 |
synchro

|
Posted:
Mon Nov 06, 2006 12:22 am |
|
that's the funny thing feed back says sent. I receive no email nothing. With the create account it says email has been sent. but no email shows up. |
|
|
|
 |
kguske

|
Posted:
Mon Nov 06, 2006 5:33 am |
|
The answer may be in the error log. You might also wish to set display_errors to TRUE in your config.php. Also, check your spam box. |
|
|
|
 |
synchro

|
Posted:
Mon Nov 06, 2006 7:47 pm |
|
not in spam box that was one of the first things I checked. I'm just stuck on this one and i'm probably going to have to use a different program for our web page. i can't have a broken product our page gets thousands of hits everyday and it is hurting us not being able to add users right now. |
|
|
|
 |
synchro

|
Posted:
Mon Nov 06, 2006 7:57 pm |
|
One other thing I can not figure out is how do I back up all my forums so it saves all areas and all messages. I've tried this several ways in the past but usually say forget it and redo everthing. |
|
|
|
 |
Guardian2003
Site Admin

Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam
|
Posted:
Mon Nov 06, 2006 9:23 pm |
|
Using phpmyadmin is the best way to abck up and save your database data.
Did your host reply to your enquiry about the PHP mail function?
The site was obviously working well for some time and scripts do not just break al on there own. Before chaging anything, you really ned to check with your host as knowing GoDaddy, they have made some change without informing you. |
|
|
|
 |
synchro

|
Posted:
Mon Nov 06, 2006 9:42 pm |
|
Do I have to back up everything in phpmyadmin? or just the forums area this is were i've been stuck before. |
|
|
|
 |
kguske

|
Posted:
Mon Nov 06, 2006 9:53 pm |
|
Let's focus on the email issue first. Did you find anything in the error log in your control panel? Did you ask your host if they disabled the php mail function?
I would recommend backing up everything. |
|
|
|
 |
synchro

|
Posted:
Mon Nov 06, 2006 10:04 pm |
|
Ok I called godaddy they have not changed anything so I enabled display_errors to TRUE in config.php this is error i got when i made true:
Warning: mail(): Bad parameters to mail() function, mail not sent. in /home/xxx/html/modules/Feedback/index.php on line 161
Mail has been sent!
Thank you for contacting us
I haven't changed anything on web page so how would this change on its own? Also what should this line be if this is incorrect? |
|
|
|
 |
kguske

|
Posted:
Mon Nov 06, 2006 10:16 pm |
|
Are you comfortable adding a few lines of PHP? If so, echo the contents of the variables used in the mail function, and add a die statement just before the mail function call. That should show you where the problem is.
If not, please post line 161 here in between code brackets. |
|
|
|
 |
synchro

|
Posted:
Mon Nov 06, 2006 10:21 pm |
|
i'll add what ever I need to i just need to know what and were I need to add it. |
|
|
|
 |
synchro

|
Posted:
Mon Nov 06, 2006 10:22 pm |
|
here's my line 161 useing word to count "CloseTable2();" |
|
|
|
 |
synchro

|
Posted:
Mon Nov 06, 2006 10:24 pm |
|
oh btw ur post confused the heck out of me lol i dont know how to code php yet. |
|
|
|
 |
kguske

|
Posted:
Mon Nov 06, 2006 10:30 pm |
|
If you open modules/Feedback/index.php with an editor like Crimson Editor or PSPad, you can go to line 161 and copy and paste that line in your forum post.
It might be easier to email the whole modules/Feedback/index.php to me. kguske at nukeSEO dot com. |
|
|
|
 |
synchro

|
Posted:
Mon Nov 06, 2006 10:39 pm |
|
here ya go "mail($to, $subject, $msg, $mailheaders);" |
|
|
|
 |
kguske

|
Posted:
Mon Nov 06, 2006 10:50 pm |
|
Right. Same as in the file you sent.
Now, we need to know the values for the 4 variables.
So, let's add this just before that line:
Code:echo "to = ".$to."<br />";
echo "subject =".$subject."<br />";
echo "msg =".$msg."<br />";
echo "mailheaders =".$mailheaders."<br />";
die();
|
My guess is that the $to variable is empty, and that this is the reason no email is received. This comes from your admin, preferences / settings administrator email setting. It should be a valid email address. |
|
|
|
 |
synchro

|
Posted:
Mon Nov 06, 2006 10:56 pm |
|
I sent you email my results |
|
|
|
 |
synchro

|
Posted:
Mon Nov 06, 2006 10:58 pm |
|
It doesn't make sense to me it all looks right. |
|
|
|
 |
kguske

|
Posted:
Mon Nov 06, 2006 11:14 pm |
|
I agree. I did a test, and received the email with no problem. I'll send you the file I used, so you can test it. |
|
|
|
 |
synchro

|
Posted:
Mon Nov 06, 2006 11:21 pm |
|
|
|
 |
synchro

|
Posted:
Mon Nov 06, 2006 11:29 pm |
|
when I try and register it doesn't even do the debug info. |
|
|
|
 |
synchro

|
Posted:
Mon Nov 06, 2006 11:36 pm |
|
well i'm done screwing with this tonight i'm going to go play some AA now. If you have any more ideas you got my email addy so let me know. If not tomorrow i'm probably going to just redo my entire site and see if that fixes it. |
|
|
|
 |
|