Portál AbcLinuxu, 7. listopadu 2025 20:38
mail("test@domena.tld", "test", "test);
a pride napriklad od odosielatela
/www test@domena.tld test test
ako zmenit apache tak aby nevypisoval korenovy adresar? php.ini alebo http.conf?
Řešení dotazu:
A co máš nastavené v sendmail_path v php.ini?
Lepší je to zadat přímo ve funkci mail. Bude ti to pak fungovat na všech serverech stejně bez ohledu na nastavení (o sdíleném hostingu nemluvě).
sendmail_path = /usr/sbin/sendmail -t -i
-F full_name
Set the sender full name. This overrides the NAME environment vari-
able, and is used only with messages that have no From: message
header.
-f sender
Set the envelope sender address. This is the address where delivery
problems are sent to. With Postfix versions before 2.1, the Errors-To:
message header overrides the error return address.
Cise stacilo pridat do php.ini
sendmail_path = /usr/sbin/sendmail -t -i -F NAPRIKLAD -fvyrieseny@priklad.tldDakujem :).
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.