Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Wysyłanie z listy maillingowej.
kubatron
post 26.09.2003, 13:27:45
Post #1





Grupa: Zarejestrowani
Postów: 581
Pomógł: 0
Dołączył: 21.07.2003
Skąd: Jasło

Ostrzeżenie: (0%)
-----


no to sprawa taka:
index.php
[php:1:63cafdf90a]<?php
<form>
temat:<br>
<input type="text" name="temat"><br>
treśc:<br>
<textarea rows="7" name="tresc" cols="40"></textarea><br>
<input type="submit" name="submit" value="wyślij">
</form>
<?
if($submit){
$header = "From: Lista mailowa <mast10@poczta.onet.pl>";
$adresy = file("lista.txt");
for ($index=0; $index < count($adresy); $index++)
{
mail("$adresy[$index]","$temat","$tresc","$header");
}
echo"Wiadomość została rozesłana";
}
?>
?>[/php:1:63cafdf90a]
i błąd
Warning: mail() [function.mail]: Failed to connect to mailserver at "mast10@poczta.onet.pl" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in c:usrkrasnalwww321index.php on line 14

Warning: mail() [function.mail]: Failed to connect to mailserver at "mast10@poczta.onet.pl" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in c:usrkrasnalwww321index.php on line 14

Fatal error: Maximum execution time of 30 seconds exceeded in c:usrkrasnalwww321index.php on line 15
jak zrobić żeby lepiej skrypt działał i wysyłany był z mast10@poczta.onet.pl
Go to the top of the page
+Quote Post
nobody
post 26.09.2003, 14:33:04
Post #2





Grupa: Zarejestrowani
Postów: 150
Pomógł: 0
Dołączył: 9.07.2003
Skąd: Lublin city

Ostrzeżenie: (0%)
-----


Pliczek php.ini, linijki:
Kod
; For Win32 only.

SMTP = localhost
; For Win32 only.

sendmail_from = me@localhost.com

tam gdzie smtp wpisujesz adres serwera poczty wychodzacej, czyli smtp onetu, natomiast swoj adres email wpisujesz dopiero w sendmail_from.
Pozdro.


--------------------
(none)
Go to the top of the page
+Quote Post
kubatron
post 26.09.2003, 16:36:49
Post #3





Grupa: Zarejestrowani
Postów: 581
Pomógł: 0
Dołączył: 21.07.2003
Skąd: Jasło

Ostrzeżenie: (0%)
-----


tak
Kod
; For Win32 only.

SMTP =smtp.poczta.onet.pl


; For Win32 only.

sendmail_from =mast10@poczta.onet.pl

i daj mi twoje nr gg[/code]
Go to the top of the page
+Quote Post
kubatron
post 26.09.2003, 16:39:03
Post #4





Grupa: Zarejestrowani
Postów: 581
Pomógł: 0
Dołączył: 21.07.2003
Skąd: Jasło

Ostrzeżenie: (0%)
-----


nobody powiedz że pisze posty zrozumiale prawda sad.gif sad.gif sad.gif
Go to the top of the page
+Quote Post

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: 6.07.2025 - 01:51