Thread: Automatic mail

    #1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2000
    Location
    Seattle Wa Us
    Posts
    12
    Rep Power
    0
    I am a newbie and I'm writing a application as a feedback database. The user submits his name e-mail etc. into a form and thenit stores it. I want to be able to send a sort of thank-you message after they fill in the form. How could I do that?
  2. #2
  3. No Profile Picture
    Apprentice Deity
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Jul 1999
    Location
    Niagara Falls (On the wrong side of the gorge)
    Posts
    3,237
    Rep Power
    19
    Read about the mail() function in the manual
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Posts
    26
    Rep Power
    0
    you need to use the mail() function as follows:

    mail ("to", "subject", "message");

    Lets say your user enters their email in a form field named "Email". You would then write the mail function as:

    mail ("$Email", "subject", "message");

    Thats just a basic start, there's much more you can do by adding headers and such.

  6. #4
  7. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2000
    Location
    Seattle Wa Us
    Posts
    12
    Rep Power
    0
    Thanks, that was like the only thing not coverd in my PHP3 book. That'l do

Similar Threads

  1. Help with script
    By akastarlight in forum Perl Programming
    Replies: 1
    Last Post: February 6th, 2004, 06:55 AM
  2. mail() not working with ISP's mail server
    By wjones8050 in forum PHP Development
    Replies: 2
    Last Post: January 9th, 2004, 02:47 PM
  3. how the mail could be automatic send to others like virus in php
    By georgealbert in forum Antivirus Protection
    Replies: 16
    Last Post: January 7th, 2004, 07:01 PM
  4. FROM address using sendmail in perl
    By ebonit in forum Perl Programming
    Replies: 14
    Last Post: August 21st, 2003, 11:41 AM
  5. Problems with MIME type in mail headers
    By hccfilms in forum PHP Development
    Replies: 1
    Last Post: October 14th, 2002, 01:54 AM

IMN logo majestic logo threadwatch logo seochat tools logo