Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    Regular Coder
    Join Date
    Oct 2002
    Location
    USA
    Posts
    255
    Thanks
    1
    Thanked 0 Times in 0 Posts

    How to "Email / Recommend this website"

    Does anyone have a script for the "recommend-our-site-to-your-friend" kind of box which can enable users to submit email directly to their friends?

    Thanks!

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    United Kingdom Confused: Often
    Posts
    859
    Thanks
    0
    Thanked 0 Times in 0 Posts
    that would best be done using a server side language... does your host support any?
    redhead

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Location
    ColoRockyz
    Posts
    1,649
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Several @ hotscripts.com. If your host doesn't support asp/cgi/php, search there under remotely hosted.
    Last edited by zoobie; 12-22-2002 at 08:46 PM.
    Zoobie or not Zoobie...That is the problem.
    <body onUnload="flush( ! )">

  • #4
    Regular Coder
    Join Date
    Oct 2002
    Location
    USA
    Posts
    255
    Thanks
    1
    Thanked 0 Times in 0 Posts
    my server supports PHP.

    Which is the best you can recommend thatI can use with php?

  • #5
    Senior Coder
    Join Date
    Jun 2002
    Location
    ColoRockyz
    Posts
    1,649
    Thanks
    1
    Thanked 0 Times in 0 Posts
    They're all about the same. Take your pick.

    Hi $friends_name !

    $your_name thought you'd like this lame..er...great site! Check it out here!

    http://lame_site.com

    $your_name left this note: Allllllrighty then!

    Just make sure your host has the mail() enabled.
    Zoobie or not Zoobie...That is the problem.
    <body onUnload="flush( ! )">

  • #6
    New Coder
    Join Date
    Jun 2002
    Location
    Bonny Scotland! Status: Insane
    Posts
    92
    Thanks
    0
    Thanked 0 Times in 0 Posts
    this is going into PHP now but how would I send that as an e-mail? (putting it into the mail()?!)
    «Ðå G壣ꮻ²ºº²

  • #7
    Regular Coder
    Join Date
    Jun 2002
    Location
    United Kingdom Confused: Often
    Posts
    859
    Thanks
    0
    Thanked 0 Times in 0 Posts
    well... you'd make a form that sends the info to the php page you want to send the script and then use something like this...

    PHP Code:
    var $message "Hi ".$HTTP_POST_VARS['to_name'].",/n/n".$HTTP_POST_VARS['from_name']." has recomended this site to you... [url]http://www.example.com[/url]";

    mail($HTTP_POST_VARS['to_email'], 'Check out this site'$message'From: '.$HTTP_POST_VARS['from_email']); 
    written "on the fly"... hope it works...
    Last edited by redhead; 12-26-2002 at 10:11 PM.
    redhead


  •  

    Posting Permissions

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