PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > php.general > E-mail the resulting html page
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
E-mail the resulting html page

Réponse
 
LinkBack Outils de la discussion
Vieux 07/09/2007, 23h20   #1 (permalink)
Daniel
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut E-mail the resulting html page

Hello,

I have a php generate page that populate various cells of a table with
info from a db. I am trying to findout how to e-mail the resulting
webpage as the body of an e-mail. Are there functions to do this type
of thing or do I need to code the entire table into the mail()
function. Any advice on how I could do this is greatly appreciated.

Come to think of it, generating a pdf of the page and e-mailing it
would also be an acceptable solution if the above is too complicated,
any direction on this would also be appreaciated. Or any other ideas.

Thank you,

Daniel

  Réponse avec citation
Vieux 09/09/2007, 19h32   #2 (permalink)
michael@greenquery.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: E-mail the resulting html page

Hi Daniel,

To send a Email response in HTML is simple
<?php

$to_email = "johndoe@hotmail.com";
$subject = "Hello from my website";
$options = "From: janedoe@hotmail.com\nContent-Type: text/html;
charset=ISO-8859-1";
$content = "
<html>\n
<body>\n
<h1>Email response</h1>\n
<p>Bla bla bla...</p>\n
</body>\n
</html>\n
";

//Send the mail
mail($to_email,$subject,$content,$options);

?>


To send files within your email.
You can look at my tutorial on mail

http://wiki.greenquery.com/doku.php?...mmon_functions

Hope it s

/Michael

On Sep 8, 12:20 am, Daniel <d_pinea...@hotmail.com> wrote:
> Hello,
>
> I have a php generate page that populate various cells of a table with
> info from a db. I am trying to findout how to e-mail the resulting
> webpage as the body of an e-mail. Are there functions to do this type
> of thing or do I need to code the entire table into the mail()
> function. Any advice on how I could do this is greatly appreciated.
>
> Come to think of it, generating a pdf of the page and e-mailing it
> would also be an acceptable solution if the above is too complicated,
> any direction on this would also be appreaciated. Or any other ideas.
>
> Thank you,
>
> Daniel



  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 03h07.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,07271 seconds with 10 queries