inviare tramite mail pagina sito come pdf
-
E non può farlo un modulo dove loro inseriscono sola la mail?
-
-
Un pulsante con un incona pdf, questa fa magari aprire un popup dove basta inserire una mail.
Questo fa si che venga mandata a quella mail la pagina in formato pdf. -
-
No ci sono degli script che lo fanno al volo, qui però dovremmo attendere qualche esperto di php o asp...
-
-
yabeforg
Avrei la necessità di creare un bottone per ogni pagina di un sito e far si che venga inviata come un pdf, utilizzando outlook.
E' una cosa fattibile oppure è fantascienza? :bho:
Please translate this:
It's very simple to do this.
You need to use mail() php function.Insert on every age you want to send as a pdf doc: <a href="yoursite.it/send.php?pdflink='.$_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"].'"
Create a file send.php and add this code
<?
$htmlFile = "$_GET['pdflink']";
$buffer = file_get_contents($htmlFile);
$pdf = new HTML2FPDF('P', 'mm', 'Letter');
$pdf->AddPage();
$pdf->WriteHTML($buffer);
$pdf->Output('$_GET['pdflink']', 'F');
mail('[email protected]', 'My Subject', $pdf);
?> -
owi
Please translate this:
It's very simple to do this.
You need to use mail() php function.Insert on every age you want to send as a pdf doc: <a href="yoursite.it/send.php?pdflink='.$_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"].'"
Create a file send.php and add this code
<?
$htmlFile = "$_GET['pdflink']";
$buffer = file_get_contents($htmlFile);
$pdf = new HTML2FPDF('P', 'mm', 'Letter');
$pdf->AddPage();
$pdf->WriteHTML($buffer);
$pdf->Output('$_GET['pdflink']', 'F');
mail('[email protected]', 'My Subject', $pdf);
?>ciao, mi puoi spiegare se converte in pdf? non riesco a capire
-
-
Prima cerchiamo di capire, e magari spostare nella sezione più adatta.
Che linguaggio server usi?
Asp o php? -
-
if the page from your website in PHP, it should work
<?
//rest of codeprint'
<form action="send.php?link='.$_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"].'" method="post">
Email: <input type="text" name="email" /><br />
<input type="submit" value="Submit" />
</form>
';//rest of code
?>Create a file send.php and insert the following code:
<?
$htmlFile = "$_GET['link']";
$buffer = file_get_contents($htmlFile);
$pdf = new HTML2FPDF('P', 'mm', 'Letter');
$pdf->AddPage();
$pdf->WriteHTML($buffer);
$pdf->Output('$_GET['pdflink'].php', 'F');
mail('$_POST['email']', 'PDF link', 'yoursite/'.$pdf);
?> -
owi
if the page from your website in PHP, it should work
<?
//rest of codeprint'
<form action="send.php?link='.$_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"].'" method="post">
Email: <input type="text" name="email" /><br />
<input type="submit" value="Submit" />
</form>
';//rest of code
?>Create a file send.php and insert the following code:
<?
$htmlFile = "$_GET['link']";
$buffer = file_get_contents($htmlFile);
$pdf = new HTML2FPDF('P', 'mm', 'Letter');
$pdf->AddPage();
$pdf->WriteHTML($buffer);
$pdf->Output('$_GET['pdflink'].php', 'F');
mail('$_POST['email']', 'PDF link', 'yoursite/'.$pdf);
?>I do not know php. This script converts HTML to PDF?
-
Penso che per usare HTML2FPDF bisogna scaricare l'apposita libreria e farne un require once della stessa per usarla.
Ciao! Sembra che tu sia interessato a questa conversazione, ma non hai ancora un account.
Stanco di dover scorrere gli stessi post a ogni visita? Quando registri un account, tornerai sempre esattamente dove eri rimasto e potrai scegliere di essere avvisato delle nuove risposte (tramite email o notifica push). Potrai anche salvare segnalibri e votare i post per mostrare il tuo apprezzamento agli altri membri della comunità.
Con il tuo contributo, questo post potrebbe essere ancora migliore 💗
Registrati Accedi
