Re: [PHP-DB] how to email article to a friend

2001-06-20 Thread Lester June Cabrera


You can query your database to extract those info, compose your email and 
use mail( ) function to send it.


At 02:22 PM 6/19/01 -0400, [EMAIL PROTECTED] wrote:
I'm a newbie and have only worked with php to send email from webform input.
I now want to add a new feature to my website: Email article to a friend
and I don't know where to start.

I want to add this feature to webpages that are dynamically created from a
mysql database.  How do I pull this same info. and send it in an email?

I'm desperately looking for help at the absolute basic level. I'm not even
clear on how I would grab the current url from which I want to email.

Please respond to my email directly as I'm on the digest version. I'll print
a summary and post to the list afterwards.

Thank you, Shawna

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



-
Lester June Cabrera
Chief Web Programmer
I-Quest Corporation

Tel: (632) 867 8150 local 302 or 309
Fax: (63 2) 867 8077
E-mail: [EMAIL PROTECTED]

Visit the most comprehensive on-line business travel resource at 
http://www.worldroom.com

Successful events start here. Visit http://www.worldroomevents.com .
The one-stop online exchange for event planners and suppliers to the MICE 
industry.


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DB] how to email article to a friend

2001-06-20 Thread Andreas D. Landmark

At 20.06.2001 08:52, you wrote:

You can query your database to extract those info, compose your email and 
use mail( ) function to send it.

that is _not_ a wise way to do it, you should include some form of 
restrictions on how many
emails can be sent to a single account within X minutes for example. 
Further you should
restrict by HTTP_REFERER (yep it's poor, but it's better than nothing) so 
that a automated
script can't use your email-article-to-a-friend function to spam 
thousands of people without
any work...

There are quite a few considerations to take into account when writing a 
email-article-to-a-friend
function, just to be on the safe side...

-- 
Andreas D Landmark / noXtension
Real Time, adj.:
 Here and now, as opposed to fake time, which only occurs there
and then.


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP-DB] how to email article to a friend

2001-06-20 Thread Brian Paulson

I would suggest that you send the link to the page that you want them to
visit rather then the entire article. 

The reason being is that you put a lot of work in to getting people to
your site to just give them the content, and if you have banners as a
revenue source and you send the entire article you will lose those
pageviews and click through rates. 

Just a thought, let me know if you want to do it this way and I will
share with you what we have done. 

Thank You
Brian Paulson
Sr. Web Developer
[EMAIL PROTECTED]
The Pueblo Chieftain
www.chieftain.com
1-800-279-6397
 

-Original Message-
From: Andreas D. Landmark [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, June 20, 2001 6:22 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-DB] how to email article to a friend


At 20.06.2001 08:52, you wrote:

You can query your database to extract those info, compose your email 
and
use mail( ) function to send it.

that is _not_ a wise way to do it, you should include some form of 
restrictions on how many
emails can be sent to a single account within X minutes for example. 
Further you should
restrict by HTTP_REFERER (yep it's poor, but it's better than nothing)
so 
that a automated
script can't use your email-article-to-a-friend function to spam 
thousands of people without
any work...

There are quite a few considerations to take into account when writing a

email-article-to-a-friend
function, just to be on the safe side...

-- 
Andreas D Landmark / noXtension
Real Time, adj.:
 Here and now, as opposed to fake time, which only occurs there
and then.


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]