Results 1 to 5 of 5
  1. #1

    quicksilver's Avatar
    Member Since
    Feb 22, 2006
    Location
    Bristol, UK
    Posts
    318
    Specs:
    MBP, 2.0Ghz, 2GB RAM, 120GB HDD, 1991 Powerbook 100, Gen 2 Nano, Gen 1 Touch
    Question A Big favor to ask..
    Hey guys,

    I was wondering if one of you might be able to do me a favor?
    I building a small website as best I can, and have a form as part of one of the pages.
    Now i can write the form but not the script to email it to me and forward the viewer to a specific page.

    Can anyone write me a basic script to do this? I would really appreciate it!

    I believe it has to be written in perl (???) or php i think? I'm not too hot with this stuff yet.

    Any help would be great!

    Thanks
    Oh...and only pretty girls use Macs...

  2. #2


    Member Since
    Jan 14, 2007
    Posts
    101
    Specs:
    1.67ghz powerbook G4, 1GB RAM, 100GB HD.
    You can find this script on the internet. Do a google for free php script or something.

  3. #3

    dekan's Avatar
    Member Since
    Mar 16, 2007
    Posts
    756
    you can also just do it in php. there is a mail function. just use the variables from the form.

    looks like that:

    mail($receiver,$subject,$message,$header);
    pretty basic, but it works.

  4. #4

    quicksilver's Avatar
    Member Since
    Feb 22, 2006
    Location
    Bristol, UK
    Posts
    318
    Specs:
    MBP, 2.0Ghz, 2GB RAM, 120GB HDD, 1991 Powerbook 100, Gen 2 Nano, Gen 1 Touch
    I've searched for free scripts but they all seem to contain ads and stuff.

    dekan: could you elaborate slightly? i'm not good with php!
    Oh...and only pretty girls use Macs...

  5. #5
    Matteh117
    Guest
    Easy. Using the example above I'll show you how it's done.

    Make a php page (ex. mail_script.php) with the following;
    Code:
    <?php
    $receiver = $_POST['receiver_address'];
    $subject = 'Subject of the message here';
    $message 'Body of the message here - use HTML and \n for new lines';
    $header = 'From: From name <from@address.com>';
    mail($receiver, $subject, $message, $header);
    echo ('Mail sent message to appear on screen. Maybe add a html link to go back?');
    ?>
    I believe that should do it for you - if not just reply and I will actually test it and fix it.

    In the HTML form send it to this page and make sure that the address to send to is in a textfield named 'receiver_address'.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. A favor or two
    By antizero in forum OS X - Apps and Games
    Replies: 10
    Last Post: 02-17-2006, 11:13 PM
  2. A favor from a Web Designer
    By Benjamindaines in forum Web Design and Hosting
    Replies: 0
    Last Post: 10-06-2005, 09:05 PM
  3. image resizing favor
    By iNAP in forum Schweb's Lounge
    Replies: 8
    Last Post: 06-02-2005, 12:04 PM
  4. Big favor?
    By Mojo027 in forum Switcher Hangout
    Replies: 2
    Last Post: 07-01-2004, 12:19 AM
  5. Need A Favor
    By Mr.Curlynose1 in forum OS X - Operating System
    Replies: 2
    Last Post: 02-25-2004, 06:30 PM

Posting Permissions

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