Re: send a web page by email.
| From: | Manuel Lemos | Date: | Wed, 08 Jan 2003 21:56:40 +0000 |
| Subject: | Re: send a web page by email. | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-17728@lists.php.net to get a copy of this message | ||
Hello,
On 01/08/2003 07:41 PM, Camelia Moldovan wrote:
Hi! Does anyone know something about this? I have a web page (generated using php)and I want to send it by email. I know how to send html emails using php but I don't know how to email the current page. Please help.Just use output buffering support to capture its output. Alternatively you may try to pass its URL to fopen. You can also do that and pass the URL to this class function named AddFilePart. http://www.phpclasses.org/mimemessage Anyway, one thing for you to keep in mind is to avoid sending HTML only messages because that will make them be rejected by most SPAM filters. What you should do is to send an alternative text version along with the HTML version in the same message body. The class above comes with an example of how to do that. -- Regards, Manuel Lemos