SA-MP Forums Archive
[DUV] PHP Load Emails - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [DUV] PHP Load Emails (/showthread.php?tid=150557)



[DUV] PHP Load Emails - ipsBruno - 26.05.2010

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


Re: [DUV] PHP Load Emails - NewTorran - 26.05.2010

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


Re: [DUV] PHP Load Emails - russo666 - 26.05.2010

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.