Kod
"
[b]Warning[/b]: Invalid argument supplied for foreach() in [b]/usr/php/pear/Mail.php[/b] on line [b]123[/b]
[b]Warning[/b]: Invalid argument supplied for foreach() in [b]/usr/php/pear/Mail.php[/b] on line [b]151[/b]
Failed to set sender: I [SMTP: Invalid response code received from server (code: 550, response: sender not found... podany nadawca nie istnieje...)]"
[b]Warning[/b]: Invalid argument supplied for foreach() in [b]/usr/php/pear/Mail.php[/b] on line [b]123[/b]
[b]Warning[/b]: Invalid argument supplied for foreach() in [b]/usr/php/pear/Mail.php[/b] on line [b]151[/b]
Failed to set sender: I [SMTP: Invalid response code received from server (code: 550, response: sender not found... podany nadawca nie istnieje...)]"
o co w tym chodzi ?
<?php require_once "Mail.php"; $from = "formularz@xxxx"; $to = "xxxxxxx"; $subject = "Zapytanie ze strony www xxxx"; $body= '$_POST['imie']'.'$_POST['telefon']'.'$_POST['email']'.'$_POST['tresc']'; $host = "xxx.xxxx.xx"; $username = "xxx"; $password = "xxx"; 'To' => $to, 'Subject' => $subject); 'auth' => true, 'username' => $username, 'password' => $password)); $mail = $smtp->send($to, $body, $subject, $headers); if (PEAR::isError($mail)) { } else { } ?>
a w HTML mam TAK:
<form ACTION="formularz.php" method="post"> <table border="0" width="100%" cellpadding="3" cellspacing="0"> <form action="" method="POST"> <input type="hidden" name="link" value="kontakt"> <input type="hidden" name="wyslij" value="1"> <tr> <td> <font size="1" face="Arial,Helvetica,Times New Roman"> <input type="text" name="imie" class="form" size="19" value="Imię i nazwisko" onFocus="if(this.value=='Imię i nazwisko') this.value=''"> </td> </tr> <tr> <td> <font size="1" face="Arial,Helvetica,Times New Roman"> <input type="text" name="telefon" class="form" size="10" value="Telefon" onFocus="if(this.value=='Telefon') this.value=''">, <input type="text" name="email" class="form" size="15" value="E-mail" onFocus="if(this.value=='E-mail') this.value=''"> </td> </tr> <tr> <td> <font size="1" face="Arial,Helvetica,Times New Roman"> </td> </tr> <tr> <td> <font size="1" face="Arial,Helvetica,Times New Roman"> <input type="submit" class="submit" value="Wyślij zapytanie"> </td> </tr> </form> </table> </font> </td> </tr>
a moze znacie jakis inny sposob na wyslanie wiadomosci ze strony bez uzycia klienta pocztowego ?