How to send Image in the php message body? [pending]

0

I think I should have similar questions but none helped me :(, I'm trying to be here like this, and the image does not appear in the email. look what I've tried:

<?php echo "<meta charset='utf-8'>";    ?>
<form action='sendmail.php' method='post'>
Nome:<br>
<input type='text' name='nome' />
<br>
Seu Email(Remetente)<br>
<input type='text' name='from' />
<br>
Enviar para(Destinatário):
<br>
<input type='text' name='email' />

<br>
Assunto do Email: 
<br>
<input type='text' name='assunto' />
<br>
Mensagem:
<br>
<textarea name='mensagem'></textarea>
<br>
<input type='submit' />

</form>
<?php

if(isset($_POST['nome']))  {
    $nome = addslashes($_POST['nome']);
    $email = addslashes($_POST['email']);
    $mensagem = addslashes($_POST['mensagem']);
    $assunto = addslashes($_POST['assunto']);
    $from = addslashes($_POST['from']);
    $para = $email;

        $mensagem = '<html>                 <body>  
    <font face=Verdana size=1>          
    <img src=http://sistemadenotas.96.lt/Scan.jpg><br>          
                </font>     
                </body>         
                </html>  

    ';
    $cabecalho = "From:".$from."\r\n"."Reply-To: ".$email."\rn\n"."X:Mailer:".phpversion();
echo "<meta charset='utf-8'>";  
    mail($para,$assunto,$mensagem,$cabecalho);

    echo "<h2>Email Enviado Com Sucesso";
    exit;

}



?>
    
asked by anonymous 17.11.2017 / 19:39

1 answer

0

Missing quotation marks in img src tag

Change this:

<img src=http://sistemadenotas.96.lt/Scan.jpg>

For this reason:

<img src="http://sistemadenotas.96.lt/Scan.jpg">
    
17.11.2017 / 19:46