Emailing a Webpage generated in PHP

the mail() function

Moderators: macek, egami, gesf

lookup
New php-forum User
New php-forum User
Posts: 1
Joined: Tue Jun 28, 2011 11:05 am

Emailing a Webpage generated in PHP

Postby lookup » Tue Jun 28, 2011 11:06 am

In a nutshell, this webpage that I have is a generated report from an sql server with formatting and everything already done. I have the .php file that generates this website and I would like to email this webpage as a viewable email file. Does anybody have any idea what I can do?

User avatar
gandahar
New php-forum User
New php-forum User
Posts: 112
Joined: Tue Mar 15, 2011 4:05 am

Re: Emailing a Webpage generated in PHP

Postby gandahar » Wed Jun 29, 2011 6:25 am

Hi ! :D

take a basic "send email php script" on the net, and just assign your full page into a $variable

then put this $variable into the body of your message and don't forget to tell the script you want a HTML format !!

that's all, easy :D




bye


Return to “PHP coding => Mail”

Who is online

Users browsing this forum: No registered users and 1 guest

cron