Codice PHP:
<?php
print(" 1. Il contratto è stipulato per la durata minima di 3 (tre) giorni dal [b]$prim;[/b]
$file = 'http://www.miosito.net/contratto.php';
$html = file_get_contents($file);
//togliamo TAG Html
$html =strip_tags($html);
mail('destinatario@mail.com', 'Contratto', $html, 'From: [email]mittente@mail.com[/email]');
prova così
Codice PHP:
<?php
$html = "1. Il contratto è stipulato per la durata minima di 3 (tre) giorni dal [b]$prim;[/b]\n";
$file = 'http://www.miosito.net/contratto.php';
$html .= file_get_contents($file);
//togliamo TAG Html
$html =strip_tags($html);
mail('destinatario@mail.com', 'Contratto', $html, 'From: [email]mittente@mail.com[/email]');