Thanx Miguel. The from->personal variable is an IMAP header to be sent out. 
I open a pipe to sendmail, but since I'm running Postfix, the sendmail -f 
(for fullname) option wouldn't work. As a result the receiver gets "Apache 
User" as value for the from->personal member. Do you know how to insert some 
name into this header? I've already used posix_getpwnam() gecos member as 
Miguel suggested to retrieve full name from local server. Now I'd like to 
put this into the mail header and send it along since sendmail can't help me 
with postfix running.

Strangely when I shut down postfix, the popen I used to run sendmail cannot 
trigger sendmail to send mails out. No bouncing back...nothing. When I 
switch postfix back on, the mails in queue were delivered. Any idea why?

>From: Miguel Cruz <[EMAIL PROTECTED]>
>To: gaukia 345 <[EMAIL PROTECTED]>
>Subject: Re: [PHP] How to get user full name using PHP function?
>Date: Wed, 27 Mar 2002 01:31:41 -0600 (CST)
>On Wed, 27 Mar 2002, gaukia 345 wrote:
> > I'm writing a web mail. Having problem grabbing user full name to be
> > included in the email. So I hv a few questions:
> >
> > 1) How do I fetch the user's full name using a PHP function WITHOUT
> > calling system program finger? I already have the Linux user ID and
> > password since I am using HTTP authentication.
>Check out the function posix_getpwnam(), in particular, the gecos field.
>This obviously only works if the user account is present on your web
> > 2) How do I fetch it using finger?
>I wouldn't if I were you.
> > 3) Do I put the full name in the from->personal variable?
>Difficult to say. What is the from->personal variable?

Join the world’s largest e-mail service with MSN Hotmail.

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to