Author |
Message |
elkingkong
Hangin' Around

Joined: Sep 01, 2007
Posts: 30
|
Posted:
Thu May 15, 2008 11:47 pm |
|
Ok, I just installed a new fresh copy of RavenNuke_v2.20.01 under a “test” directory, here is the link http://gillaspiehair.com/test/modules.php?name=Feedback
Even this fresh install gives me the “Mail has not been sent! Had error with mailer.” message and no email is sent.
It looks like the Feedback module hates me!  |
|
|
|
 |
montego
Site Admin

Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Fri May 16, 2008 5:48 am |
|
Within config.php, change $display_errors = true. We need to see the detailed error description (but, be careful to remove any absolute paths... just need the relative path to the root of your test site so we know where its failing within RN). |
_________________ Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! |
|
|
 |
Guardian2003
Site Admin

Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam
|
Posted:
Fri May 16, 2008 7:21 am |
|
I have gone over and over this but cannot see anything that might be causing it to fail.
If you have a good 'pure' text editor like Crimson Editor or Notepad++ you might want to check the module index file has no empty line at the top or bottom of the file and also make sure the whole modules/Feedback directory is uploaded in binary mode.
I have just checked a friends site who uses the same hosting provider and the module works there so I'm stumped!! |
|
|
|
 |
Guardian2003

|
Posted:
Fri May 16, 2008 7:23 am |
|
In fact, PM me your ftp log in, let me check this  |
|
|
|
 |
elkingkong

|
Posted:
Fri May 16, 2008 2:20 pm |
|
montego wrote: | Within config.php, change $display_errors = true. We need to see the detailed error description (but, be careful to remove any absolute paths... just need the relative path to the root of your test site so we know where its failing within RN). |
I changed the $display_errors to true. And this is what I get
Code:Warning: mail() [function.mail]: Bad parameters to mail() function, mail not sent. in …./test/modules/Feedback/index.php on line 143
Mail has not been sent! Had error with mailer.
|
|
|
|
|
 |
elkingkong

|
Posted:
Fri May 16, 2008 5:45 pm |
|
Guardian2003 wrote: | In fact, PM me your ftp log in, let me check this |
The PM has been sent.
Side Note: My PHP Version is PHP 5.0, is this the proper version I should be using? I know some php files don’t work well with PHP 5.0. |
|
|
|
 |
Guardian2003

|
Posted:
Sat May 17, 2008 3:52 am |
|
You are actually using PHP version 5.2.5 but that should not be a problem (I'm using 5.2.3) although there is a known issue with the mail function in that version I'm assuming your host has the later (fixed) version as all the other files that use PHP's mail() function are working correctly.
I have checked the files and they seem fine. I also made some changes - some server configurations do not like the /r/n line endings and prefer just /n which I tried but to no avail.
The data is being processed correctly as I can print it out to the screen inside the 'fail' message, so we know all the data is being sent to the mail() function.
I have tried everything I can think off (including using a different version of the Feedback module) but always end up with the same error message;Code:Warning: mail() [function.mail]: Bad parameters to mail() function, mail not sent. in …./test/modules/Feedback/index.php on line 143
|
Unless someone with more experience of the mail function is available to help, I'm not sure what else to try. |
|
|
|
 |
montego

|
Posted:
Sat May 17, 2008 11:25 am |
|
Guardian2003, can you echo out the parameters via var_dump so we can see them? This is just stumping me as well. I honestly still think there is something being rejected on the host side, because I am just at a loss as to what this could be. In the meantime I am going to go over to the Swift web site and see if there are any threads on this.
BTW, the error message you are showing does not appear to be coming from Swift. Are you using TegoNuke(tm) Mailer with the Mail() option in this case? If not, it might be worth giving that a try and seeing if Swift can give more error content. |
|
|
|
 |
Guardian2003

|
Posted:
Sat May 17, 2008 11:51 am |
|
I only had ftp access so I'm not able to set up the SMTP stuff for TegoMailer.
It just is weird that elkingkongsaid other scripts (registration etc) which are using the php mail() function are working, just not the one in Feedback module.
I also tested with/without CAPTCHA and pre-TegoMailer changes.
All the vars are definitely getting passed through as I echo'd them out within both the 'success' and 'fail' ELSE routines, though obviously they only displayed on the fail.
elkingkong If you want me to try using the TegoMailer I will need your admin log-in via PM. |
|
|
|
 |
elkingkong

|
Posted:
Sat May 17, 2008 2:59 pm |
|
Guardian2003 wrote: | I only had ftp access so I'm not able to set up the SMTP stuff for TegoMailer.
It just is weird that elkingkongsaid other scripts (registration etc) which are using the php mail() function are working, just not the one in Feedback module.
I also tested with/without CAPTCHA and pre-TegoMailer changes.
All the vars are definitely getting passed through as I echo'd them out within both the 'success' and 'fail' ELSE routines, though obviously they only displayed on the fail.
elkingkong If you want me to try using the TegoMailer I will need your admin log-in via PM. |
The PM has been sent. |
|
|
|
 |
elkingkong

|
Posted:
Mon May 19, 2008 11:44 pm |
|
montego wrote: | Guardian2003, can you echo out the parameters via var_dump so we can see them? This is just stumping me as well. I honestly still think there is something being rejected on the host side, because I am just at a loss as to what this could be. In the meantime I am going to go over to the Swift web site and see if there are any threads on this.
BTW, the error message you are showing does not appear to be coming from Swift. Are you using TegoNuke(tm) Mailer with the Mail() option in this case? If not, it might be worth giving that a try and seeing if Swift can give more error content. |
Montego any new info from the Swift web site? |
|
|
|
 |
montego

|
Posted:
Tue May 20, 2008 5:46 am |
|
I've been searching, but nothing. I had to resort to looking at each topic title as searches are coming up empty.
Again, I don't think that error message is coming from Swift. I need for you to turn on the TegoNuke Mailer and have it use the Mail() function, AND do this while having $display_errors = true.
Without more error details, this is worse than even finding a needle within a haystack. |
|
|
|
 |
elkingkong

|
Posted:
Tue May 20, 2008 1:39 pm |
|
montego wrote: | I've been searching, but nothing. I had to resort to looking at each topic title as searches are coming up empty.
Again, I don't think that error message is coming from Swift. I need for you to turn on the TegoNuke Mailer and have it use the Mail() function, AND do this while having $display_errors = true.
Without more error details, this is worse than even finding a needle within a haystack. |
Wow, Ok, on my test site in TegoNuke Mailer I turned on the Mail() function and I had the $display_errors = true. I then filled out the boxes in the Feedback module and it sent the email.
Happydays are here again.
Guardian2003 what changes did you make so that I can document them and use them on my main site? |
|
|
|
 |
Guardian2003

|
Posted:
Tue May 20, 2008 2:18 pm |
|
I didn't - all changes were reverted back to your original files  |
|
|
|
 |
elkingkong

|
Posted:
Tue May 20, 2008 4:21 pm |
|
Guardian2003 wrote: | I didn't - all changes were reverted back to your original files |
That’s interesting. Something had to have changed.
On my main site I turned on the Mail() function in the TegoNuke Mailer. I hit “Send” in the Feedback page and all I get is a blank box where a confirmation should be. I’m going to use FileZilla and re-upload the Feedback module in “Binary” mode. And if that doesn’t work then I’m going to copy the Feedback folder in my test site and uploaded it in my main site. That should make it work. I will keep you posted.
Thanks  |
|
|
|
 |
elkingkong

|
Posted:
Tue May 20, 2008 10:18 pm |
|
Bad days are here again.
On my main site, http://gillaspiehair.com/modules.php?name=Feedback , in TegoNuke Mailer I turned on Mail() and re-uploaded the Feedback module in “Binary” mode. And guess what, I get a blank box and no email is sent. So I downloaded the Feedback folder from my test site, http://gillaspiehair.com/test/modules.php?name=Feedback , and uploaded it to my main site and again I get a black box and no email.
So I set $display_errors = true. And I got this error
Code:Warning: mail() [function.mail]: Bad parameters to mail() function, mail not sent. in .../includes/tegonuke/mailer/Swift/Plugin/MailSend.php on line 158
Fatal error:
Uncaught Error of type [Swift_ConnectionException] with message [Sending failed using mail() as PHP's default mail() function returned boolean FALSE.]
@0 include_once() in .../modules.php on line 88
@1 tnml_fMailer() in .../modules/Feedback/index.php on line 141
@2 Swift::send() in .../includes/tegonuke/mailer/mailer.php on line 99
@3 Swift::notifyListeners() in .../includes/tegonuke/mailer/Swift.php on line 523
in .../includes/tegonuke/mailer/Swift/Errors.php on line 99
|
Guardian2003 are you sure you didn’t do anything special to my test site? If you didn’t then I don’t know how my test site got fixed and my main site is still not working.
Montego I hope this error message can narrow down the problem.
It’s an unrelenting perplexing riddle with sharp edges.  |
|
|
|
 |
montego

|
Posted:
Wed May 21, 2008 5:25 am |
|
elkingkong, this is just crazy! I need to see what is being sent. Please open up the following script file: includes/tegonuke/mailer/mailer.php.
Before this line:
Code:if (empty($to)) return false;
|
Add this code:
Code:
print_r($to);
print_r($subject);
print_r($body);
print_r($from);
print_r($fromname);
print_r($params);
|
Cut and paste the output of this (just the gobblygook that you get displayed - lol) into a post.
Or, PM me with FTP account credentials (and leave TegoNuke Mailer on). Guardian is away for a few days. |
|
|
|
 |
elkingkong

|
Posted:
Wed May 21, 2008 10:02 am |
|
montego wrote: | elkingkong, this is just crazy! I need to see what is being sent. Please open up the following script file: includes/tegonuke/mailer/mailer.php.
Before this line:
Code:if (empty($to)) return false;
|
Add this code:
Code:
print_r($to);
print_r($subject);
print_r($body);
print_r($from);
print_r($fromname);
print_r($params);
|
Cut and paste the output of this (just the gobblygook that you get displayed - lol) into a post.
Or, PM me with FTP account credentials (and leave TegoNuke Mailer on). Guardian is away for a few days. |
PM has been sent. |
|
|
|
 |
montego

|
Posted:
Wed May 21, 2008 11:03 am |
|
Ok. Thanks. Just so you know, I will look at this either later tonight or first thing early tomorrow morning (I"m at work). |
|
|
|
 |
elkingkong

|
Posted:
Thu May 22, 2008 11:16 am |
|
Montego, were you able to fix any of the errors? |
|
|
|
 |
montego

|
Posted:
Thu May 22, 2008 5:26 pm |
|
I just checked everything out and I can honestly say that I am completely stumped on this one. This works perfectly fine for me on ALL of my sites.
I am going to keep trying because this just does not make any sense to me. I am able to use Recommend Us. Can you try to submit a news article and see if your admin email gets through? You may have to enable the News and Submit News modules, but I really need to find out if something is stopping your admin email.
Is it possible that somehow your host has this email address blocked or maybe it is on some other blacklist? I am just stumped.
I'll come back after I've reviewed the code again...  |
|
|
|
 |
montego

|
Posted:
Thu May 22, 2008 5:43 pm |
|
I can find nothing in the code between Feedback and Recommend Us that would be causing an issue. I even tried a small code change to test a theory, but "no joy".
I think this has something to do with your environment somehow. I noticed that you are using FastCGI. I wonder if that is a variable.
What I would also recommend you trying is configuring TegoNuke Mailer for authenticated SMTP emails and try to take PHP's Mail() function variable out of the equation. |
|
|
|
 |
elkingkong

|
Posted:
Thu May 22, 2008 11:13 pm |
|
montego wrote: | I just checked everything out and I can honestly say that I am completely stumped on this one. This works perfectly fine for me on ALL of my sites.
I am going to keep trying because this just does not make any sense to me. I am able to use Recommend Us. Can you try to submit a news article and see if your admin email gets through? You may have to enable the News and Submit News modules, but I really need to find out if something is stopping your admin email.
Is it possible that somehow your host has this email address blocked or maybe it is on some other blacklist? I am just stumped.
I'll come back after I've reviewed the code again... |
I just submitted a News Article and it seems to work just fine.
I don’t think the admin email is blocked or blacklisted because I just created it a few weeks ago and the test site sends a Feedback email to it. |
|
|
|
 |
elkingkong

|
Posted:
Thu May 22, 2008 11:22 pm |
|
montego wrote: | I can find nothing in the code between Feedback and Recommend Us that would be causing an issue. I even tried a small code change to test a theory, but "no joy".
I think this has something to do with your environment somehow. I noticed that you are using FastCGI. I wonder if that is a variable.
What I would also recommend you trying is configuring TegoNuke Mailer for authenticated SMTP emails and try to take PHP's Mail() function variable out of the equation. |
I don’t know what “FastCGI” is.
I tried to set up the SMTP earlier in this thread; here is the quote from page 1
elkingkong wrote: | Quote: | In the TegoNuke setup, use SMTP, enter the outgoing address for your ISP, username and password. The default port is 25, no need to change that if the other mail functions are working.
|
Dad7732, I tried to set up the smtp function but this made it worse, not only did the Feedback not work but the other modules wouldn’t send emails either. I tried setting up the smtp with two different accounts with no success. I believe I use the correct settings but without a successful sent email it’s not possible to tell. |
|
|
|
|
 |
elkingkong

|
Posted:
Fri May 23, 2008 12:03 am |
|
Ok, so I did some hard thinking and dusted off my deduction skills and this is what came of it.
My main site does not send Feedback emails but my test site does.
This means that my host is not blocking my Feedback module.
My main site sends every other type of email.
This means that my site has the ability to send emails.
I copied the working Feedback folder from my test site and uploaded it to my non working main site. This did not fix the issue.
This means that the PHP files are not the problem.
The only thing left is the SQL database.
Ether the files are not being installed properly or there is something I am doing after the install to fowl them up. I don’t manually go into the SQL database and make changes but I do use aftermarket installers to add modules and blocks.
Conclusion
I am going to install another site and closely watch the install process. I am also going to compare the SQL database with one that is working properly. If the Feedback module works then I’m going to start installing modules one by one to flush out the problem child.
Wish me luck  |
|
|
|
 |
|