Results 1 to 10 of 10

Thread: Send to Friend script

  1. #1
    Trench Warfare
    Join Date
    May 2003
    Location
    Australia
    Posts
    813

    Send to Friend script

    I am looking for code/script that i can put on the recipe pages on my recipe site so that there is a simple form allowing people to "send" a link to the recipe they are viewing to a friend.

    Something that displays sender name, sender email, email of recipient and in the email:

    "name" thought you might enjoy this recipe at http://www.domain.com/recipe

    Any ideas how to do this?

    Cheers...
    ________
    F2005
    Last edited by ozgression; 02-06-2011 at 06:51 AM.

  2. #2
    Future AstonMartin driver r2d2's Avatar
    Join Date
    Dec 2003
    Location
    UK
    Posts
    1,608
    Using PHP?

    Use a form to get the senders email address, name, recipients email, and use a hidden input to contain the recipe url, then the action page for the form should send the email using PHPs mail function.

    Thats how I would probably do it.

    You might want to watch the fact that people will get the email from you and they wont have asked for it (could be called spam).

  3. #3
    Trench Warfare
    Join Date
    May 2003
    Location
    Australia
    Posts
    813
    Actually i want them to get it from their friend. Their friend's email address. So i dont feel ther will be any SPAM issues.

    Do you have any examples/links of the php form? I don't know php very well.

    Cheers...
    ________
    bho hash oil
    Last edited by ozgression; 02-06-2011 at 06:51 AM.

  4. #4
    Future AstonMartin driver r2d2's Avatar
    Join Date
    Dec 2003
    Location
    UK
    Posts
    1,608
    If you want it to come from them, then they will have to send the email themselves.

    (The only way to send it 'from' them would be to get their smtp server, and email username & password, and I'm sure that would actually be possible, never mind a bit silly )
    You have to put something like a 'Ctrl-A, Ctrl C this text below, and paste it into your email page' thing.

    Anyone else have any ideas?

  5. #5
    Senior Member AndyH's Avatar
    Join Date
    May 2004
    Location
    Australia
    Posts
    553
    Code:
    <a href="mailto:?subject=Check%20Out%20This%20Website&body=http://www.example.com">Click here to tell a friend.</a>
    I think that is the only way if you want the visitor to send it from them and not your server.
    New website released. ya rly!

  6. #6
    Chronic Entrepreneur
    Join Date
    Nov 2003
    Location
    Tulsa, Oklahoma, USA
    Posts
    1,112
    The problem with the code above is that if the visitor doesn't have a default email client set up correctly on their computer (a lot of people don't) then the link won't work.

    If you use server side scripting (like PHP) to send the email , you can set the email address the user provides as the "reply-to" address, but the email will still actually come from your server, and if it's reported as spam you'll be the one that has to deal with it.

    I spent a lot of time looking into this problem a while back, and the best solution I found was to set up a script that stores the information that each user submits but doesn't send it out. Then, every day or two, you would manually check the list of stored tell-a-friend submissions and approve each one to be sent if it doesn't look like spam. This would give you the added bonus of getting to read what people are writing about your site.

    I haven't actually implemented this on any of my sites yet, but that's the way I plan to do it when I find the time.

  7. #7
    Trench Warfare
    Join Date
    May 2003
    Location
    Australia
    Posts
    813
    Quote Originally Posted by Westech
    If you use server side scripting (like PHP) to send the email , you can set the email address the user provides as the "reply-to" address, but the email will still actually come from your server, and if it's reported as spam you'll be the one that has to deal with it.
    Yes, this is what i meant. The person will see their friend's email address as the sender. Honestly guys, i dont think SPAM will be an issue with this site.

    Anyway, I basically want something like this - http://www.cj-design.com/index.php?c...wnloads&page=3 . Except, I want the form to be displayed on my page instead of on a different page. Is there a way to modify the above script?

    Cheers...
    ________
    spice weed
    Last edited by ozgression; 02-06-2011 at 06:52 AM.

  8. #8
    Senior Member thebillionaire's Avatar
    Join Date
    Apr 2004
    Posts
    746
    you guys should try flash sending script thing, they look cool, and there prob. easy to make.

  9. #9
    Gimme Fries with that!
    Join Date
    Aug 2004
    Posts
    1,469
    i have a script in php I use, I will try and fish it out, been awhile since i used it.

  10. #10
    Trench Warfare
    Join Date
    May 2003
    Location
    Australia
    Posts
    813
    That would be great... I would really appreciate it
    ________
    Honda CM400
    Last edited by ozgression; 02-06-2011 at 06:57 AM.

Similar Threads

  1. biz-directory script
    By Percept in forum General Management Issues
    Replies: 0
    Last Post: 07-02-2004, 02:22 PM
  2. Looking for affiliates.. (to sell a PHP script)
    By listenmirndt in forum The Marketplace
    Replies: 4
    Last Post: 04-12-2004, 03:58 AM
  3. AWS PHP script problems
    By tempyyyst in forum Advertising & Affiliate Programs
    Replies: 8
    Last Post: 04-04-2004, 08:12 AM
  4. Anybody found a shopping cart script to use with AWS?
    By RockNRollPig in forum Advertising & Affiliate Programs
    Replies: 7
    Last Post: 02-18-2004, 06:44 PM
  5. Redirect script with statistics, graphs, etc
    By emke in forum Website Programming & Databases
    Replies: 7
    Last Post: 05-20-2003, 04:44 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •