Author Topic: Listmail compatible with PHP 5.0.4?  (Read 2850 times)

jeffb0

  • Posts: 15
    • View Profile
Listmail compatible with PHP 5.0.4?
« on: September 01, 2005, 03:08:05 pm »
Howdy, getting ready to upgrade my server, but need to know if Listmail is compatible with the latest php (5.0.4)?

Thanks and keep up the great work... been using Listmail over three years now without a hitch!

Excellent!

Jeff

jeffb0

  • Posts: 15
    • View Profile
Listmail compatible with PHP 5.0.4?
« Reply #1 on: September 02, 2005, 11:57:16 am »
I'd really like to know the answer to this before I upgrade my PHP, anyone?

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
Listmail compatible with PHP 5.0.4?
« Reply #2 on: September 03, 2005, 09:35:48 am »
Jeff,

I don't have an answer for this as I haven't tried it yet.  You could be my test, if you like.  Submit your server info at http://listmailpro.com/support under "Other".  I don't expect anything serious would arise, but if anything does happen I can look into it and fix it.  Worst-case scenario, you could rollback to your old version of PHP (keep a record of what version it was and a copy of your old /etc/php.ini).  Just in case, I don't recommend trying this update before a critical mailing. :)

Regards
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

jeffb0

  • Posts: 15
    • View Profile
Listmail compatible with PHP 5.0.4?
« Reply #3 on: September 03, 2005, 05:41:46 pm »
Okay, I have been testing it locally on my test server before putting it into production.  One problem I've had so far is that the Test Mail Settings seems to work and generates an email, but when a user signs up for a list, they are not sent the intro email.  Any ideas?[/b]

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
Listmail compatible with PHP 5.0.4?
« Reply #4 on: September 04, 2005, 02:17:47 am »
Welcome, confirmation, and some notification emails are sent using the PHP mail() function to prevent too many connections to the SMTP server.  I suspect that PHP mail() is not working.

Here is a mail() test script:
Code: [Select]
<?php// config$domain = "domain.com";$toaddr = "test@listmailpro.com";// end config$fromaddr = "mytest@$domain";$returnpath = "bounceme@$domain";// codeecho date("l, F jS g:ia T");echo "<br>testing mail() function..<br>sending mail.. ";if(mail($toaddr,'mailtest','mailtest',"From: \"Mytest\" <$fromaddr>\nReturn-path: <$returnpath>")) echo "mail seems to be sent ok<br>"; else "mail NOT sent ok!?<br>";?>

Run a phpinfo() script to see if the "sendmail" variables are configured correctly - you may need to update your PHP.INI
Code: [Select]
<?php phpinfo(); ?>

Regards
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

jeffb0

  • Posts: 15
    • View Profile
Listmail compatible with PHP 5.0.4?
« Reply #5 on: September 04, 2005, 03:30:52 am »
I will try this later today, but my test server is a windows XP box with no sendmail installed, instead php is using my remote server (mail.mydomain.com) to send mail.  Will let you know what transpires.

EDIT:

Here are some of my php.ini settings:

Code: [Select]
SMTP mail.mydomain.com
sendmail_path no value
smtp_port 25

jeffb0

  • Posts: 15
    • View Profile
Listmail compatible with PHP 5.0.4?
« Reply #6 on: September 04, 2005, 05:11:13 am »
Here is the output of your script above... Now I'm really stumped:

Code: [Select]
Sunday, September 4th 8:09am Eastern Daylight Time
testing mail() function..
sending mail.. mail seems to be sent ok


What do you think?

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
Listmail compatible with PHP 5.0.4?
« Reply #7 on: September 04, 2005, 05:13:44 am »
Actually, I received an email from your test.  You should edit the "to address" variable at the top of the script and also set your domain.

Mail appears to be sending fine... Are you sure the welcome message are enabled and still do not work?

Regards
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

jeffb0

  • Posts: 15
    • View Profile
Listmail compatible with PHP 5.0.4?
« Reply #8 on: September 04, 2005, 08:27:24 am »
I wonder if there is a smtp server for windows similar to sendmail that I could install and then update my php.ini instead of using my remote server info?

I will be in touch, I've got to get this hammered out before I go live.

jeffb0

  • Posts: 15
    • View Profile
Listmail compatible with PHP 5.0.4?
« Reply #9 on: September 04, 2005, 09:31:11 am »
CASE CLOSED: installed a local windoze smtp server and it works like a champ.  my remote smtp server must have not liked something.

Thanks for all your help and keep up the good work.

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
Listmail compatible with PHP 5.0.4?
« Reply #10 on: September 04, 2005, 10:03:03 am »
I'm glad you've had some success!  Please let me know if you notice any problems running under PHP 5.

Regards
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

jeffb0

  • Posts: 15
    • View Profile
Listmail compatible with PHP 5.0.4?
« Reply #11 on: September 05, 2005, 04:22:56 am »
I've had a few error messages in my logs, but not sure if my visitors are having trouble signing up or not:

Code: [Select]
[04-Sep-2005 21:27:24] PHP Warning:  Variable passed to each() is not an array or object in /home/wwwroot/domain.com/listmail/signup.php on line 27
[04-Sep-2005 21:27:24] PHP Warning:  reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /home/wwwroot/domain.com/listmail/signup.php on line 63
[04-Sep-2005 21:27:24] PHP Warning:  Variable passed to each() is not an array or object in /home/wwwroot/domain.com/listmail/signup.php on line 65
[04-Sep-2005 21:27:24] PHP Warning:  reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /home/wwwroot/domain.com/listmail/signup.php on line 131
[04-Sep-2005 21:27:24] PHP Warning:  Variable passed to each() is not an array or object in /home/wwwroot/domain.com/listmail/signup.php on line 133



It looks like this error happened all at the same time.

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
Listmail compatible with PHP 5.0.4?
« Reply #12 on: September 08, 2005, 06:29:31 am »
Does this continue to happen often?  It could be an automated script testing your form for vulnerability or someone trying to post a custom form to your site.  I've also seen this error on some servers when using (or not using) the "www" prefix on the domain.  ie. to "www.site.com" as opposed to "site.com".  Let me know if you continue to notice this in the logs or receive complaints.

Regards
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting