Does Any One....

Discussion in 'Gaming' started by VSdesigns, Jun 19, 2005.

  1. VSdesigns

    VSdesigns Well-Known Member

    Posts:
    794
    Likes Received:
    0
    Joined:
    May 6, 2005
    does anyone have any scripts for instant email submission probally bftp might have it but just asking..
     
  2. Andrew

    Andrew Well-Known Member

    Age:
    37
    Posts:
    7,617
    Likes Received:
    0
    Joined:
    Mar 10, 2005
    Location:
    California; Texan lost in Cali
    Can you give an example? Not sure what your talkin' bout.

    BFTP
     
  3. 4nub1s

    4nub1s Senior Member

    Posts:
    3,476
    Likes Received:
    0
    Joined:
    Feb 24, 2005
    Location:
    Beyond Reality
  4. Fate

    Fate Well-Known Member

    Age:
    32
    Posts:
    5,655
    Likes Received:
    0
    Joined:
    Dec 29, 2004
    Location:
    Manchester, UK
    Do u mean like to send a script through php? if so here's a lil basic script i wrote:

    Code:
    <html>
    <head>
    <title>Send mail</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    </head>
    <?php
    
    $to = $_POST['to'];
    $from = $_POST['from'];
    $subject = $_POST['subject'];
    $content = $_POST['content'];
    
    if (isset ($_POST['submit'])) {
    
      if ( (empty ($to)) or (empty ($subject)) or (empty ($from)) or (empty ($content)) ) {
           echo "<fieldset><legend>Error</legend>Enter fields correctly</fieldset>";
      } else {
        echo "<fieldset><legend>Sent</legend>The email has been sent</fieldset>";
           mail($to, $subject, $content, "FROM: $from");
      }
    
    }
    
    echo "<div align='center'><fieldset><legend>Send Email</legend><form action='mail.php' method='post'>
    
    
    To: <input type='text' name='to' size='60' maxsize='60' value='$to' /></p>
    
    
    Subject: <input type='text' name='subject' size='60' maxsize='60' value='$subject' /></p>
    
    
    From: <input type='text' name='from' size='60' maxsize='60' value='$from' /></p>
    
    
    Subject:
    <textarea name='content' cols='100' rows='10' value='$content' ></textarea></p>
    
    
    <input type='submit' name='submit' value='Send' /></p></form></fieldset></div>";
    
    ?>
    </body>
    </html>
    A working example can be seen here:

    http://www.codedfx.com/examples/mail.php
     
  5. Andrew

    Andrew Well-Known Member

    Age:
    37
    Posts:
    7,617
    Likes Received:
    0
    Joined:
    Mar 10, 2005
    Location:
    California; Texan lost in Cali
    Nice lil example there Gareth...=)

    BFTP
     

Share This Page