allora ho tentato di usare php mailer ma non mi trovo per la struttura da usare perchè la struttara che ho trovato in una guida è questa:
Codice PHP:
<?
require_once("class.phpmailer.php");
$mail = new PHPMailer();
$mail->IsSMTP(); // attiva l'invio tramiteSMTP
$mail->Host = "mail.serverposta.it"; // indirizzo smtp
$mail->From = "mittente@dominio.it";
$mail->FromName = "Nome Mittente";
$mail->AddAddress("destinatario@dominio.it");
$mail->IsHTML(true);
$mail->Subject = $oggetto;
$mail->Body = $bodyhtml;
$mail->AltBody = $bodytxt;
$mail->AddAttachment("public/filename_1.zip");
if(!$mail->Send()){
echo "Si è verificato un errore nell'invio della mail"; }
else{
echo "Mail inviata con successo"; }
?>
ed io non so bene cosa mettere in body html o body text dato che io ho questo da recuperare
Codice PHP:
<?php
$email ="crashsito64@yahoo.it";
$nome = $_POST['name'];
$descrizione= $_POST['desc'];
$categoria= $_POST['cat'];
$file= $_POST['swf'];
$immagine= $_POST['thumb'];
$creatore= $_POST['authorname'];
$mittente= $_POST['mail'];
?>