[PHP] replacing characters in a string

2004-10-14 Thread Mark Hubert
This should be simple but having never have done it before and at 
deadline...help please.

Need to change:
 [EMAIL PROTECTED]
to;
user=domain
Thank you!
Mark
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] ezmlm-sub or alternative

2004-10-13 Thread Mark Hubert
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


[PHP] ezmlm-sub or alternative

2004-10-11 Thread Mark Hubert
 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.
Thanks!
Mark
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php