Page 2 of 2 FirstFirst 12
Results 11 to 20 of 20

Thread: E-mail Thingy

  1. #11
    Keikan's Avatar ........
    Join Date
    Apr 2003
    Location
    Edmonton (Not Enfield)
    Age
    34
    Posts
    3,743
    it's still confusing
    Ohh noo!!! I make dribbles!!!

  2. Internet, Programming and Graphics   -   #12
    Poster
    Join Date
    Jun 2003
    Location
    Yet to be determined
    Posts
    993
    Originally posted by Keikan@1 February 2004 - 07:06
    it's still confusing
    What exactly is confusing, maybe we could help you?

  3. Internet, Programming and Graphics   -   #13
    Keikan's Avatar ........
    Join Date
    Apr 2003
    Location
    Edmonton (Not Enfield)
    Age
    34
    Posts
    3,743
    Everything I don't even know how to get started after I download the script
    Ohh noo!!! I make dribbles!!!

  4. Internet, Programming and Graphics   -   #14
    h1
    Guest
    Which script are you using? Just attach it here.

  5. Internet, Programming and Graphics   -   #15
    Keikan's Avatar ........
    Join Date
    Apr 2003
    Location
    Edmonton (Not Enfield)
    Age
    34
    Posts
    3,743
    the php one posted up there
    Ohh noo!!! I make dribbles!!!

  6. Internet, Programming and Graphics   -   #16
    h1
    Guest
    In the document with the form, you must have this:
    Code:
    <form method="post" action="form2mail.php">
    Then, upload the following file to the same directory as form2mail.php after editing everything:
    Code:
    <?php
    // Script by George A. & Calin S. from Web4Future.com. Modified slightly by haxor41789 for standards compliance.
    
    // EDIT THE FOLLOWING VARIABLES
    
    $MailToAddress = "[email protected]"; // This is your email address. Use ", " to seperate multiple addresses.
    $redirectURL = "http://www.web4future.com/thankyou.htm"; // The URL of the thank you page.
    $MailSubject = "[Message from the contact form]"; // The subject of the message you will receive
    $MailToCC = ""; // Also sends the email to this address (leave empty if you don't use it)
    
    // DO NOT EDIT BELOW THIS LINE
    
    $Message = "";
    if (!is_array($HTTP_POST_VARS))
    return;
    reset($HTTP_POST_VARS);
    while(list($key, $val) = each($HTTP_POST_VARS)) {
    $GLOBALS[$key] = $val;
    if (is_array($val)) { 
    $Message .= "<strong>$key:</strong> ";
    foreach ($val as $vala) { 
    $vala =stripslashes($vala);
    $Message .= "$vala, ";
    }
    $Message .= "<br />";
    } 
    else {
    $val = stripslashes($val);
    if (($key == "Submit") || ($key == "submit")) { }  
    else {  if ($val == "") { $Message .= "$key: - <br>"; }
    else { $Message .= "<strong>$key:</strong> $val<br>"; }
    }
    }
    }
    $Message = "<span style=\"font-face:verdana;font-size:12px;\">".$Message."</span>";
    mail( $MailToAddress, $MailSubject, $Message, "Content-Type: text/html; charset=ISO-8859-1\r\nFrom: ".$email."\r\nBCc: ".$MailToCC);
    header("Location: ".$redirectURL);
    ?>
    Set permissions to --rwxr-xr-x and you're good to go.

    Hope this helps.

  7. Internet, Programming and Graphics   -   #17
    Keikan's Avatar ........
    Join Date
    Apr 2003
    Location
    Edmonton (Not Enfield)
    Age
    34
    Posts
    3,743
    uhhh........
    Ohh noo!!! I make dribbles!!!

  8. Internet, Programming and Graphics   -   #18
    Poster
    Join Date
    Jun 2003
    Location
    Yet to be determined
    Posts
    993
    If you have SmartFTP or somthing equivalent, in the command prompt you can type:
    CHMOD --rwxr-xr-x form2mail.php
    or
    CHMOD 700 form2mail.php

  9. Internet, Programming and Graphics   -   #19
    Poster
    Join Date
    Mar 2003
    Posts
    3,582
    I think he's on a shaw members site. No php, no cgi, front page enabled but extremely limited, no asp.

  10. Internet, Programming and Graphics   -   #20
    h1
    Guest
    That just blows.

    You could use <form method="post" action="mailto:[your]@[email].[address]?subject=[subject]">, but this requires that the user have an email client installed.

Page 2 of 2 FirstFirst 12

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
  •