[nycphp-talk] fsockopen / scrape / html mail

Lynn, Michael (DCS) MLynn at
Sat Jan 11 07:09:21 EST 2003

The Newsletter / Web Site I'm scraping is on an intranet, the recipients are outside the firewall on the internet.

-----Original Message-----
From: CHUN-YIU LAM [mailto:chun_lam at] 
Sent: Friday, January 10, 2003 11:53 PM
To: NYPHP Talk
Subject: Re: [nycphp-talk] fsockopen / scrape / html mail

Why not read it in to a buffer, and then parse the href or src to add the 
server doc root url in front?  What do you think?


----Original Message Follows----
From: "Lynn, Michael " <MLynn at>
Reply-To: talk at
To: NYPHP Talk <talk at>
Subject: [nycphp-talk] fsockopen / scrape / html mail
Date: Fri, 10 Jan 2003 10:45:29 -0500
Received: from ([]) by with Microsoft SMTPSVC(5.0.2195.5600); Fri, 10 Jan 
2003 07:56:38 -0800
Received: from ([]) by with Microsoft SMTPSVC(5.0.2195.5600); Fri, 10 Jan 
2003 07:56:35 -0800
Received: from ( [])by (8.12.6/8.12.6) with ESMTP id h0AFjTSt044492;Fri, 10 Jan 
2003 10:45:31 -0500 (EST)(envelope-from listmaster at
Message-Id: <200301101545.h0AFjTSt044492 at>
X-Paralist-Archived: <>
X-List-Software: Paralist 0.6
List-ID: <>
List-Owner: <mailto:listmaster at>
List-Archive: <>
List-Subscribe: <>
List-Unsubscribe: <>
Organization: New York PHP
X-Mailer: Paramail 0.5
Return-Path: listmaster at
X-OriginalArrivalTime: 10 Jan 2003 15:56:37.0477 (UTC) 

While the fsockopen / scrape issue is hot...

I have a Newsletter mailing script that uses fsockopen to do just as you 
Scrape a url and mail the contents to a list of recipients.

The only problem is that if I mail this to a user that doesn't have access 
to the original url, the resultant email will contain only text with errant 
referances to the images.  This is because the
email merely contains hrefs and src's back to the original server.

Is anyone aware of how to scrape and grab content and mail it so that the 
email is wholey contained and independent of the original url/server?


MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*

--- Unsubscribe at ---

More information about the talk mailing list