Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> mail problem ..
jureusz
post 8.04.2004, 19:33:00
Post #1





Grupa: Zarejestrowani
Postów: 59
Pomógł: 0
Dołączył: 16.03.2004

Ostrzeżenie: (10%)
X----


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
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
jureusz
post 9.04.2004, 11:34:10
Post #2





Grupa: Zarejestrowani
Postów: 59
Pomógł: 0
Dołączył: 16.03.2004

Ostrzeżenie: (10%)
X----


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.
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 22.06.2025 - 15:02