[PHP] exec'ing sendmail?

2001-07-30 Thread Kevin Price-Ward

Hi,

I am experiencing problems with an email distribution utility using the mail
function, the 'Return-path' header that I specify gets overwritten by
sendmail.

I write: Return-Path: [EMAIL PROTECTED]\n

but sendmail re-writes this as: Return-Path: [EMAIL PROTECTED]

My plan is to exec sendmail and use the -f flag to specify a return-path, I
can do this from the command line but I am unsure how to go about doing this
from within php basically what are the principals of using the exec
function, specifically with sendmail and do I have to close the process
after each mail that's sent.

Many thanks

Kevin Price-Ward
tmx newmedia
-


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Extracting from arrays - alphabetically

2001-07-17 Thread Kevin Price-Ward

Hi,

A simple problem for you guys (I think),

I have 2 arrays - firstname and lastname, both have the same associative
index - lastname, I have then performed asort on both to order them
alphabetically. Now I just need to extract and display the array elements
that have the associative index beginning with A or B or whatever is defined
by $query - thus displaying only names where the lastname begins with A etc.

How do I do this?

Thanks for any help you can offer.

Lar


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Defining the Return-Path in an email header?

2001-05-10 Thread Kevin Price-Ward

Hi,

I am setting up a php emailer facility using the 'mail' function, I have
defined the 'Return-Path:' in the fourth argument of 'mail', but this keeps
getting overwritten by sendmail:

my code says: 
$headers .= Return-Path: [EMAIL PROTECTED]\n;

but the source on the resulting email says:
Return-Path: [EMAIL PROTECTED]

(Where vweb9.hiway.co.uk is our ISP's server)


the problem with this is that emails that might have delivery problems,
don't get returned to me and I will never know that they haven't been
delivered.

Any ideas?

Thanks
the_lar


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]