- 30 Ocak 2016
- 30
- 0
I have script for email anonymous but i need send more email at a time and with hyper link and i need so option attachment becouse i want send image in each email this is the file index.html and send.php.
Index.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<**** http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Fake_Mail by On3</title>
</head>
<div style="background-color:black;">
<body bgcolor="black">
<center>
<p align="center"><font color="white">Invia una fake mail compilando i diversi campi.</font><p>
<!--Qui sotto, (method="POST")=Il metodo con cui invio i file, (action="send.php")=la pagina a cui invio i dati ricavati con POST-->
<form id="form1" name="form1" method="post" action="send.php">
<p><font color="white">Mittente</font>
<label>
<!--(name="from")=associo a questa casella di input il nome 'from'-->
<input type="text" name="from" id="from" />
</label>
</p>
<p><font color="white">Destinatario</font>
<label>
<!--(name="to")=associa a quest'altra il nome 'to'-->
<input type="text" name="to" id="to" />
</label>
</p>
<p><font color="white">Oggetto</font>
<label>
<!--(name="subject")=a questa, invece, il nome 'subject'-->
<input type="text" name="subject" id="subject" />
</label>
</p>
<p><font color="white">Testo</font></p>
<p>
<label>
<!--(name="mess")=Associo a questa area di testo il nome 'mess'-->
<textarea name="mess" id="mess" cols="45" rows="5"></textarea>
</label>
</p>
<p>
<label>
<!--Creo questo 'form' che invia i dati ad 'send.php'-->
<input type="submit" name="submit" id="submit" value="Invia" />
</label>
</p>
</form>
</center>
</body>
</div>
</html>
############################
This is send.php
<?
$to = $_POST["to"];/*Creo la variabile 'to' e gli asseggno il valore che ho precedentemente assorbito con POST, "to"==destinatario*/
$from = $_POST["from"];//Creo 'from' e associo l'omonimo dato, "from"==mittente
$subject = $_POST["subject"];//Creo 'subject' e associo l'omonimo dato, "subject"==oggetto
$mess = $_POST["mess"];//Creo 'mess' e associo 'mess' (==messaggio)
$headers = "From: ". $from;//Creo 'headers' e gli associo il valore di 'from'
mail($to, $subject, $mess, $headers);//Con la funzione 'mail' spedisco i dati
echo " <p>Messaggio Mandato by On3 </p>";//Stampo a video che il messaggio è stato inviato
?>
################################
I would be very happy if someone helps me .. Thanks
Index.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<**** http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Fake_Mail by On3</title>
</head>
<div style="background-color:black;">
<body bgcolor="black">
<center>
<p align="center"><font color="white">Invia una fake mail compilando i diversi campi.</font><p>
<!--Qui sotto, (method="POST")=Il metodo con cui invio i file, (action="send.php")=la pagina a cui invio i dati ricavati con POST-->
<form id="form1" name="form1" method="post" action="send.php">
<p><font color="white">Mittente</font>
<label>
<!--(name="from")=associo a questa casella di input il nome 'from'-->
<input type="text" name="from" id="from" />
</label>
</p>
<p><font color="white">Destinatario</font>
<label>
<!--(name="to")=associa a quest'altra il nome 'to'-->
<input type="text" name="to" id="to" />
</label>
</p>
<p><font color="white">Oggetto</font>
<label>
<!--(name="subject")=a questa, invece, il nome 'subject'-->
<input type="text" name="subject" id="subject" />
</label>
</p>
<p><font color="white">Testo</font></p>
<p>
<label>
<!--(name="mess")=Associo a questa area di testo il nome 'mess'-->
<textarea name="mess" id="mess" cols="45" rows="5"></textarea>
</label>
</p>
<p>
<label>
<!--Creo questo 'form' che invia i dati ad 'send.php'-->
<input type="submit" name="submit" id="submit" value="Invia" />
</label>
</p>
</form>
</center>
</body>
</div>
</html>
############################
This is send.php
<?
$to = $_POST["to"];/*Creo la variabile 'to' e gli asseggno il valore che ho precedentemente assorbito con POST, "to"==destinatario*/
$from = $_POST["from"];//Creo 'from' e associo l'omonimo dato, "from"==mittente
$subject = $_POST["subject"];//Creo 'subject' e associo l'omonimo dato, "subject"==oggetto
$mess = $_POST["mess"];//Creo 'mess' e associo 'mess' (==messaggio)
$headers = "From: ". $from;//Creo 'headers' e gli associo il valore di 'from'
mail($to, $subject, $mess, $headers);//Con la funzione 'mail' spedisco i dati
echo " <p>Messaggio Mandato by On3 </p>";//Stampo a video che il messaggio è stato inviato
?>
################################
I would be very happy if someone helps me .. Thanks
Son düzenleme: