[DUV] PHP Load Emails
#1

I am making a system in which player in-game type / email [EMAIL] then it will save your email, but is giving errors are::
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

Code:
Код:
<?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");
}
/* ... */
?>
Have to carry mail by e-mail contained there
Reply
#2

Sorry if im wrong but i thought this was SA-MP forums not PHP forums?
Reply
#3

Quote:
Originally Posted by Joe Torran C
Sorry if im wrong but i thought this was SA-MP forums not PHP forums?
He posted it on wrong section but he is using it for sa-mp.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)