26.05.2010, 18:56
I am making a system in which player in-game type / email [EMAIL] then it will save your email, but is giving errors are::
Code:
Have to carry mail by e-mail contained there
Quote:
Warning: mail(): SMTP server response: 550 Invalid recipient: drakonsamp@hotmail.com in c:\arquivos de programas\easyphp1-8\www\samp_serv\enviar.php on line 10 |
Код:
<?php $valor1=$_GET['valor1']; $valor2=$_GET['valor2']; $file = file("emails.txt"); $headers = "Content-Type: text/html; charset=iso-8859-1\n"; $headers.="From: SEUEMAILAQUI \n"; foreach ($file as $line_num => $line) { echo "Emails Cadastrado <br>"; echo "Email <b>{$line_num}</b> : " . htmlspecialchars($line) . "<br>\n"; mail("$line","$valor1","$valor2","$headers"); } /* ... */ ?>