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

2002-07-06 Thread Greg Scotts

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

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

How would i set it out using the syntax:

$to #
$from #
$subject #
$message #
mail($to, $from, $subject, $message)
___=20

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

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

-ReLik




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

2002-07-06 Thread Alberto Serra

ðÒÉ×ÅÔ!

Greg Scotts wrote:
 $to #
 $from #
 $subject #
 $message #
 mail($to, $from, $subject, $message)

It always worked for me... you obviously checked variable content, did 
you? And I am not sure I got you right. Mail gets sent, it's just the 
sender address being wrong?

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

You need a shell with root access. I doubt you will be given one.

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

Yes, if you are root :) You need to do it in your httpd.conf (that's 
actually something Apache must now. For PHP file extension is totally 
equivalent, you could have no extension at all and they would work. It's 
Apache that needs some rule for it to know how it's going to process the 
request).

ÐÏËÁ
áÌØÂÅÒÔÏ
ëÉÅ×


-- 


-_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-

LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
lOrD i'M sHiNiNg...
YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is...


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