SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Thread: email script..?

  1. #1
    SitePoint Zealot
    Join Date
    Nov 2004
    Location
    USA, Pa. Philly
    Posts
    127
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question email script..?

    i have a website that i am trying to add a form in which people will be able to fill in and then i would like the results email to me. my host company has formmail php script 5.0, i have installed this on the server, the form is completed and seems fine, what i am confused about is in the html form code how do i configure it to work, any help or tutorial would be appicated, thx RJ
    http://www.fantasyracein.com/contact.html

  2. #2

    Join Date
    Oct 2003
    Location
    €uroLand
    Posts
    1,340
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You will need to show the script's code in order to get a detailed answer.

  3. #3
    SitePoint Addict trogdor1024's Avatar
    Join Date
    Oct 2004
    Location
    New Jersey
    Posts
    235
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    For one thing, I noticed that you are sending your form to "mailto"...
    Code:
    <form action="mailto:race@fantasyracein.com"> 
    .
    .
    .
    </form>
    All that will do is open up an email client and throw in the rest of your variables in a query string for the body of the email.

    Usually you go to an actual script, like a processing script of some sort that you would write, that 1) validates/scrubs all of the data that you are expecting to receive and 2) mails the appropriate party(ies) with the info you want.

  4. #4
    SitePoint Zealot
    Join Date
    Nov 2004
    Location
    USA, Pa. Philly
    Posts
    127
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question

    thx, but i really don't see the script, my host company has on my control panel different scripts for whatever, formmail, fourms, etc, i installed from there and check on my host server and script is there, but as you pointed out above i put my addy in that form code, and yes all it does is open my email to send box, do you have any idea of what would normally be put in there, or do you have a script along with tutorial that i could follow along, sorry if i make no sense this is all new to me, this is the page where the code comes from
    http://dtheatre.com/scripts/formmail.php (my host company has it availabe for us on the control panel ), thx for all your help, RJ

  5. #5
    SitePoint Addict
    Join Date
    Dec 2004
    Location
    netherlands
    Posts
    229
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You need access to the mailform.php

    There you set the recipient like this
    PHP Code:
    $recipient "youremail@domain.com" 
    In the Form you should set something like this:
    HTML Code:
    <form name="nameform" action="http://yourdomain/mailform.php"


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
  •