Re: [PHP] ezmlm-sub or alternative
Thanks so much for the insight which is a much simpler way. I successfully set up a test page (a form) that takes email to, from, subject and body and sends it. ?php $emailto=$_GET['emailto']; $emailfrom=$_GET['emailfrom']; $emailsub=$_GET['emailsub']; $emailbody=$_GET['emailbody']; $headers = From: $emailfrom\r\n; $headers .= Return-Path: $emailfrom\r\n; if(mail($emailto, $emailsub, $emailbody, $headers)) { echoEmail Sent; exit; } echo Email Error; ? However, when I send a message to subscribe to the EZMLM list, it sends ok, but doesn't get added to the list. When I send a test message to myself I noticed that the Return-path in the email sent is not what I set in my script, but that of the apache user. I wonder if that is where the EZMLM-sub gets the address for submission and is sending the confirmation to the dead mailbox. Any insight? Thanks, Mark On Oct 11, 2004, at 8:55 PM, James McGlinn wrote: Hi Mark, I'm writing a little script (my 3rd) that takes name (first, last) and email address and writes it to txt file and submits the email address to an EZMLM list server. All is well but I'm not sure where to go for the submission. The command line - ezmlm-sub works (from the shell)... if the user is root or vpopmail. Is there a safe way to run the shell command via a php script? Or can someone suggest another way to submit an address to ezmlm. You can make use of the public interface to ezmlm-sub by sending an email to listname[EMAIL PROTECTED] You'll need to set the 'From:' header of your emails to the address of your subscriber. You can find information on the mail() function at http://www.php.net/mail James McGlinn Project Manager BCom, BSc, Zend Certified Engineer (PHP) Servers.co.nz Ltd 68 Shortland St, Auckland PO Box 3688 Shortland St, Auckland, New Zealand Phone: 0800 4 SERVERS Fax: +64 9 358 5187 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] ezmlm-sub or alternative
On Thursday 14 October 2004 04:01, Mark Hubert wrote: However, when I send a message to subscribe to the EZMLM list, it sends ok, but doesn't get added to the list. When I send a test message to myself I noticed that the Return-path in the email sent is not what I set in my script, but that of the apache user. I wonder if that is where the EZMLM-sub gets the address for submission and is sending the confirmation to the dead mailbox. http://zend.com/lists/php-general/200410/msg00887.html -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general -- /* Yow! We're going to a new disco! */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] ezmlm-sub or alternative
On Tuesday 12 October 2004 08:29, Mark Hubert wrote: I'm writing a little script (my 3rd) that takes name (first, last) and email address and writes it to txt file and submits the email address to an EZMLM list server. All is well but I'm not sure where to go for the submission. The command line - ezmlm-sub works (from the shell)... if the user is root or vpopmail. Is there a safe way to run the shell command via a php script? Or can someone suggest another way to submit an address to ezmlm. You can enable remote administration then have php send mail to: [EMAIL PROTECTED] This will subscribe [EMAIL PROTECTED] to the list [EMAIL PROTECTED] Make sure you use the 5th parameter in mail() to specify the remote admin/moderators email address. NB if you do not allow any other methods of subscribing to the list you may want to disable subscription moderation so the remote admin don't have to confirm each subscription request. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general -- /* The two things that can get you into trouble quicker than anything else are fast women and slow horses. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] ezmlm-sub or alternative
Hi Mark, I'm writing a little script (my 3rd) that takes name (first, last) and email address and writes it to txt file and submits the email address to an EZMLM list server. All is well but I'm not sure where to go for the submission. The command line - ezmlm-sub works (from the shell)... if the user is root or vpopmail. Is there a safe way to run the shell command via a php script? Or can someone suggest another way to submit an address to ezmlm. You can make use of the public interface to ezmlm-sub by sending an email to listname[EMAIL PROTECTED] You'll need to set the 'From:' header of your emails to the address of your subscriber. You can find information on the mail() function at http://www.php.net/mail James McGlinn Project Manager BCom, BSc, Zend Certified Engineer (PHP) Servers.co.nz Ltd 68 Shortland St, Auckland PO Box 3688 Shortland St, Auckland, New Zealand Phone: 0800 4 SERVERS Fax: +64 9 358 5187 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php