Hi There,
Afraid that I'm an absolute beginner when it comes to cgi/perl. What I would like to achieve, however, is to add 'tell-a-friend' functionality to a web site which I have created. Does anyone have any thoughts/advice?
Be sure to start a new thread when posting a new topic rather than posting from an old one.
Well, first you need to look at your design and break it into manageable components.
1) Tell a friend what? About new additions to a database, a new page being added, the site in general, a specific page?
2) Tell a friend how? By e-mail would be the assumption, but I suppose there are other methods.
So now based on the two questions above we can get more specific...
1a) What content is to go in the message? Base content (a page, a link, a database record?), a short little personal message added by teh sender, the e-mail address of the recipient and or the sender, a name from the sender or the site?
1b) If this is a marketing ploy are you going to store for future use the sender, the recipient, the message, etc.? Are you going to provide a disclaimer, use policy, etc.?
2a) Assuming e-mail, is the message sent in real time or queued for batch processing later? There are lots of modules for sending e-mails from Perl, check out CPAN for one of them, some good ones include Mail::Mailer, Mail::Sendmail, Mail::Box, MIME::Lite, etc.
Now having made our design decisions we can look at building the components...
1) Going to need a form for the user to submit, is this dynamically generated or static? (Probably depends on answer to #1 above)
2) Going to need a script to process the request, regardless of whether the message is sent immediately or batched for sending later.
3) Script (maybe built into #2) to send the message.
With that break down what have you tried? This list is based on feedback, rather than providing solutions, have a go at it and come back when you have questions about implementation or design decisions....
http://danconia.org
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]