|
|
|
#1 (permalink) |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#2 (permalink) |
|
Messages: n/a
Hébergeur: |
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 |
|
![]() |
| Outils de la discussion | |
|
|