This is the code i′m runing:
<? ini_set( 'display_errors', 0 ); error_reporting( E_ALL ); $from = "Daniel Panno <[email protected]>"; $to = "[email protected]"; $subject = "Pedido de Carteles"; $message = "texto de prueba"; $headers = "De:[email protected]"; $cabeceras = 'MIME-Version: 1.0' . " "; $cabeceras .= 'Content-type: text/html; charset=UTF-8' . " "; // Cabeceras adicionales $cabeceras .= 'To: Daniel <[email protected]>, danmusic <[email protected]>' . " "; $cabeceras .= 'From: '.$from. " "; $cabeceras .= 'Cc: [email protected]' . " "; $cabeceras .= 'Bcc: [email protected]' . " "; mail($to,$subject,$message, $cabeceras); echo "El email fue enviado."; ?>
originally, the code received some POST variables, and I thought thos were not being passed correctly,so i wrote the above code to test and it still wont work
2.1m questions
2.1m answers
60 comments
56.9k users