/    Sign up×
Community /Pin to ProfileBookmark

E-mail this story to…

Hey all,

A newbie here. I was wondering if anyone knew of a way to create a script that allows people to e-mail a link to an article or page. The kind you see at most news sites that says “E-mail this article to a friend” and when you click it, you can enter the person’s e-mail address and send the previous page to that person as a link in an e-mail.

If anyone knows, it would be greatly appreciated!

Thanks,
Naveen

to post a comment
Full-stack Developer

8 Comments(s)

Copy linkTweet thisAlerts:
@PeOfEoDec 14.2003 — Basically how it works is a server side language connect to an smtp server to send the mail and one page has a form on it where you put in the email. That form page reads a query string passed from the original page and then it takes the variable from the query string to figure out which article it needs to send. Once it has done that it gets the article from the data base and emails it though the smtp server to the email address entered in the form. Figure out what server side languages (if any) your server supports because use of one will be neccessary.
Copy linkTweet thisAlerts:
@naveenmediaauthorDec 14.2003 — My host has PHP installed.

Rather than sending the actual page or article, I'd just like to be able to send the link.

Is there a good place where I can learn the specifics of how to do this in PHP or CGI?

Thanks,

Naveen
Copy linkTweet thisAlerts:
@PeOfEoDec 15.2003 — I do not use php or cgi so I am not the best person to ask about sites. But I suggest actually learning php or cgi as apposed to just getting the codes so you can add to this. You are going to need to put all of your articles in a data base so it will not be a small thing (even if you just send a link). So I suggest buying a book because that seems to be the easiest way to learn something independently.
Copy linkTweet thisAlerts:
@Aronya1Dec 15.2003 — [i]Originally posted by PeOfEo [/i]

[B]You are going to need to put all of your articles in a data base ...[/B][/QUOTE]
Are you sure about that? (I'm not arguing the usefulness of a database here.) What if they only had one article/page to worry about? Or what if they wanted to put the same "send this page" link on every page in their site? Couldn't PhP (or similar) pick up the URL dynamically as it calls the email app?
Copy linkTweet thisAlerts:
@naveenmediaauthorDec 16.2003 — Hey, this works great! Thanks much!!!

Naveen?
Copy linkTweet thisAlerts:
@PeOfEoDec 16.2003 — Well on news sites, it sends a link to a regular page that reads a query string that was sent in the link and they use a data base.
Copy linkTweet thisAlerts:
@pyroDec 16.2003 — You are welcome... ?
×

Success!

Help @naveenmedia spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.24,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...