[PHP] Re: mail help, and php.ini help.

2002-07-06 Thread Richard Lynch

i`ve coded a mass-mailer for my site but the $from header doesn't work.

It works for about a million others.  Show us source code.

when i get a test message back from it it says from Unprivileged user =
not what i set it to.

That sounds more like email bouncing...

But it could be your sendmail/qmail/exim/fredmail telling you that the User
(see httpd.conf) that PHP runs as (see ?php phpinfo();?) doesn't have
permission to forge email from some other address.

In which case your PHP syntax is fine, but your mail-sending MTA thingie is
not configured correctly.

How would i set it out using the syntax:

$to #
$from #
$subject #
$message #
#mail($to, $from, $subject, $message)

$success = mail($to, $subject, $message, From: $from\r\nReply-to:
$from\r\n);
if (!$success){
  print(Failed to send email to $to with subject $subjectBR\n);
}

___=20

Also, i was wondering how i could use my own PHP.INI config file on a =
remote webserver which hosts my site.

Not usually, but most of the settings you have any right to change are
changeable in .htaccess

And can i set .php to something else, like .he for example?

For example, create a file in your web directory, right next to your HTML
files, and name it .htaccess  (Yes, the . is part of the name.)

Put this in it:

AddType application/x-httpd-php .he

Assuming your ISP used the *standard* mime-type (application/x-httpd-php)
all your .he files are now being handled by the PHP Module.

If your ISP didn't use the standard mime-type, you have to ask them what
they used.

If they don't understand the question (scary, but happened to me once) tell
them to do:

grep -i php httpd.conf

and send you the output.

Disclaimer:  The ISP in question may actually have simply mis-understood the
question the first time around, and didn't have to actually send me all the
output of the grep on the second go-around...

-- 
Like Music?  http://l-i-e.com/artists.htm


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: mail() help

2001-07-17 Thread Steve Brett

as afr as i know it's a recompile with a path to sendmail ...
great when it works though !

Steve

Patrick W. Rateliff [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 I am getting this error when using the trying to use the mail function.
Any
 insite will help, I have been up for too long working on a few projects
and
 my brain is damn near melted.


 mail() is not supported in this PHP build in

 so when I built PHP 4.06 I am assuming I missed a option, but just want to
 make sure before i head back and re-do things.  Is there a simple option
to
 turn on the mail support.





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