Sería pasar $target_path en el cuerpo del mensaje $cuerpo.
Código:
cualquier ayuda es muy agradecida!<?php // Recoger la imagen y las variables de flash(Filedata lo asigna la clase UploadPostHelper) $target_path = $_FILES['Filedata']['name']; //esta variable es la que necesito pasar en $cuerpo echo "Nombre: ".$_POST["nombre"]."<br/>"; echo "Email: ".$_POST["email"]."<br/>"; if ( move_uploaded_file( $_FILES[ 'Filedata' ][ 'tmp_name' ], $target_path ) ) { echo "<img src='$target_path' border=2>"; } else echo "La foto no se ha podido guardar!"; ?> <?php if ($_POST['email'] != "") { $destinatario = $_POST["email"]; $asunto = $_POST['nombre']." te envió una imagen"; $cuerpo = ' <html> <head> <title>Imagen</title> </head> <body> <img src="http://dominio.com/<?php echo $target_path ?>" border=2> //aqui esta mal </body> </html> ' .$_POST["nombre"]; ; $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; $headers .= "From: Remitente <[email protected]>\r\n"; // Finalmente enviamos el mensaje if (mail($destinatario,$asunto,$cuerpo,$headers)) { echo "rpta=ok"; } else { echo "rpta=error"; } } ?>
![Aplauso](http://static.forosdelweb.com/fdwtheme/images/smilies/aplausos.gif)
saludos