![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 59 Pomógł: 0 Dołączył: 16.03.2004 Ostrzeżenie: (10%) ![]() ![]() |
IIS + SMTP ... i o co chodzi ?
Kod Warning: mail(): "sendmail_from" not set in php.ini or custom "From:" header missing in *.php on line 2
[php:1:571e5d6959]<?php mail("cosik@gazeta.pl", "temat", "hihi", "From: me@localhost"); ?>[/php:1:571e5d6959] Ustawione jest From .. w php.ini zakomentowalem Kod ;sendmail_from= serwer@localhost; for Win32 only
Ktos mi podpowie gdzie robie blad... jak ustawiam sendmail_from w php.ini to blad jest taki: Kod Warning: mail(): SMTP server response: 550 5.7.1 Unable to relay for ups@gazeta.pl in *.php on line 2
|
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 59 Pomógł: 0 Dołączył: 16.03.2004 Ostrzeżenie: (10%) ![]() ![]() |
Ok - poradzilem sobie sam. ROzwiazanie podaj nizej:
php.ini Kod [mail function]
; For Win32 only. SMTP = localhost; for Win32 only sendmail_from= serwer@localhost.com; for Win32 only Serwer SMTP: Wersja Angielska windowsa In the IIS (Admin Tools - IIS) Right Click in Default SMTP Server Properties Acces Tab In Relay Restrictions click Relay Choose -> All Except the list below OK - Apply Stop and Start SMTP Server. Polska W zakladce Dostep we wlasciwosciach naszego serwera SMTP zmieniamy Ograniczenia przekazywania na: Wszystkie z wyjatkiem wymienionych ponizej. |
|
|
![]() ![]() |
![]() |
Wersja Lo-Fi | Aktualny czas: 22.06.2025 - 15:02 |