Not to mention,
You may not control the server but I'm assuming you control your 
"homespace" if you drop a php.ini file into there it will over ride the 
main ini (but it will only over ride for that branch)
Richard wrote:

> Sure, you can send it as a header after the body...Like so:
> 
> $mailheaders = "From: $mailfrom\n";
> mail($mailto, $mailsubject, $mailbody, $mailheaders);
> 
> Where you establish $mailfrom as who its from
> 
> Rick
> 
> ----- Original Message -----
> From: "Marnix Ottens" <[EMAIL PROTECTED]>
> To: "Michael Kelley" <[EMAIL PROTECTED]>; "Peter Haywood"
> <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Saturday, June 23, 2001 2:14 AM
> Subject: Re: [PHP-WIN] using the PHP4 mail() function in (Newbie)
> 
> 
> 
>> Just a quick addon question regarding the mail() function. My mail form
>> works fine but the person who receives the e-mail is seeing "unprivileged
>> user" as the sender's name. I assume this is displayed by default.
>> 
>> Can I add a "from" field in the mail() function to display another name
> 
> than
> 
>> "unprivileged user"??
>> 
>> My current mail() looks like this:
>> mail ($recipient_email,$subject,$bodymessage);
>> 
>> regards,
>> Marnix
>> 
>> ----- Original Message -----
>> From: "Michael Kelley" <[EMAIL PROTECTED]>
>> To: "Peter Haywood" <[EMAIL PROTECTED]>
>> Cc: <[EMAIL PROTECTED]>
>> Sent: Saturday, June 23, 2001 1:23 AM
>> Subject: Re: [PHP-WIN] using the PHP4 mail() function in (Newbie)
>> 
>> 
>> 
>>> You need to change
>>> SMTP = localhost ; for Win32 only
>>> to
>>> SMTP = MyMailhost.domain.edu ; for Win32 only
>>> 
>>> (MyMailHost being your mail service's server -> pop3.hotmail.com)
>>> If you don't have that then you may need to install a mail service of
>>> your own ...
>>> If you need to do that research the archieves I know I've seen a load of
>>> different free mail services and how to install (I didn't have to do
>>> that so I'm not going to try to tell you how to do it ...)
>>> 
>>> 
>>> Peter Haywood wrote:
>>> 
>>> 
>>>> Any advice on this would be much appreciated:
>>>> 
>>>> I am trying to send a simple email.  in the php file, i have entered:
>>>> 
>>>> <?php
>>>> mail ("[EMAIL PROTECTED]", "This is the Subject", "This is the
>>> 
> message
> 
>>>> body");
>>>> ?>
>>>> 
>>>> when i load the page, i get the following:
>>>> 
>>>> Warning: Server Error in C:\inetpub\wwwroot/php/tests/test.php on line
>>> 
> 2
> 
>>>> test.php being the file containing the PHP mail code
>>>> 
>>>> this is the sendmail info in my php.ini file:
>>>> 
>>>> [mail function]
>>>> ; For Win32 only.
>>>> SMTP = localhost ; for Win32 only
>>>> 
>>>> ; For Win32 only.
>>>> sendmail_from = [EMAIL PROTECTED] ; for Win32 only
>>>> 
>>>> 
>>>> thanks,
>>>> 
>>>> pete
>>> 
>>> 
>>> --
>>> 
>>> Michael Kelley
>>> [EMAIL PROTECTED]
>>> 
>>> Programmer/Systems Analyst I
>>> New Mexico State University
>>> Information and Communication Technologies
>>> Work # (505)-646-1374
>>> P.O. Box 30001
>>> MSC: 3AT
>>> Las Cruces, NM 88003
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> --
>>> PHP Windows 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 Windows 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]
>> 
>> 


-- 

Michael Kelley                  
[EMAIL PROTECTED] 
        
Programmer/Systems Analyst I    
New Mexico State University
Information and Communication Technologies
Work # (505)-646-1374
P.O. Box 30001
MSC: 3AT
Las Cruces, NM 88003






-- 
PHP Windows 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]

Reply via email to