Closed Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: REQUEST: exact script.

  1. #1
    Derek is offline Community Support Force Derek is a splendid one to beholdDerek is a splendid one to behold
    Join Date
    May 2005
    Location
    cossacks
    Posts
    6,354

    REQUEST: exact script.

    http://www.barelyblind.com/mobi/admin/email.php

    I want the exact same script with readme and it works the same i am offering 1000-5000 points defending if it works and how good it works..

  2. #2
    Bryon is offline Administrator Bryon has disabled reputation
    Join Date
    Apr 2005
    Location
    Northfield, NH
    Posts
    7,608

    Re: REQUEST: exact script.

    PHP Code:
    <?php
       
    if ($_POST['submit']) {
          
    $header 'From: '$_POST['from'];
          
    mail($_POST['to'], $_POST['subject'], $_POST['body'], $header);
          echo 
    'Email sent.';
       }
    ?>

     <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
      <div>
       To: <input type="text" name="to" value="">
       Subject: <input type="text" name="subject" value="" />
       Body: <textarea name="body"></textarea>
       From: <input type="text" name="from" value="">
       <input type="submit" name="submit" value="Send Email">
      </div>
     </form>
    There you go. No user input validation though, which isn't necessarily a good thing.. but whatever.

    Your 'Readme': http://us2.php.net/manual/en/function.mail.php
    Last edited by Bryon; 03-11-2007 at 10:43 PM.

  3. #3
    Derek is offline Community Support Force Derek is a splendid one to beholdDerek is a splendid one to behold
    Join Date
    May 2005
    Location
    cossacks
    Posts
    6,354

    Re: REQUEST: exact script.

    What is the user input validation?? Can you include it? I will test this is good for about 1500 points..\\

    www.collide.elementfx.com/testing.php

    It doesnt work maybe you can fix it xD
    Last edited by Derek; 03-11-2007 at 11:11 PM.

  4. #4
    Starshine's Avatar
    Starshine is offline Legend Killer Starshine is an unknown quantity at this point
    Join Date
    Jul 2006
    Location
    U.S.A.
    Posts
    7,211

    Re: REQUEST: exact script.

    I'm just curious, but what is it suppose to do??

  5. #5
    Derek is offline Community Support Force Derek is a splendid one to beholdDerek is a splendid one to behold
    Join Date
    May 2005
    Location
    cossacks
    Posts
    6,354

    Re: REQUEST: exact script.

    Email like blah@microsoft.com to a users email just try it for yourself in that link just send and email to yourself from adsfasdfasdfas@dsfasdfasdfasdfasdfasdfasdfasdfads. com

  6. #6
    Bryon is offline Administrator Bryon has disabled reputation
    Join Date
    Apr 2005
    Location
    Northfield, NH
    Posts
    7,608

    Re: REQUEST: exact script.

    It works fine, I just tested it.

    What I meant by 'validating user input' was like.. Verifying what a user entered (Aka user input) is correct before using it directly in the script.

    Also, I don't need any points.
    Last edited by Bryon; 03-12-2007 at 08:04 AM.

  7. #7
    Derek is offline Community Support Force Derek is a splendid one to beholdDerek is a splendid one to behold
    Join Date
    May 2005
    Location
    cossacks
    Posts
    6,354

    Re: REQUEST: exact script.

    =) works thanks! Also can you add that in and the verfication and make it so i can input the senders name Thanks!

    Hmm also is there a thing where i can log what gets sent by this thing..

    Wait i dont want the verfiying i twant the thing hwere you enter like 564654 or something that verfication


    =) http://collide.elementfx.com/dmailer.php
    Last edited by Derek; 03-12-2007 at 06:59 PM.

  8. #8
    Bryon is offline Administrator Bryon has disabled reputation
    Join Date
    Apr 2005
    Location
    Northfield, NH
    Posts
    7,608

    Re: REQUEST: exact script.

    Pay someone else the points to do it, what you're asking for wouldn't be difficult at all, but I'm busy with x10 stuff. :-)
    Last edited by Bryon; 03-12-2007 at 07:16 PM.

  9. #9
    Derek is offline Community Support Force Derek is a splendid one to beholdDerek is a splendid one to behold
    Join Date
    May 2005
    Location
    cossacks
    Posts
    6,354

    Re: REQUEST: exact script.

    Aww man... I really need it and your the best =)

    Nvm i did the image verfication myself
    Last edited by Derek; 03-12-2007 at 09:47 PM.

  10. #10
    daman371 is offline x10 Sophmore daman371 is an unknown quantity at this point
    Join Date
    Nov 2006
    Location
    Louisiana
    Posts
    130

    Re: REQUEST: exact script.

    I'm not sure if this is still needed but I added the validation.

    Code:
    <?php
       if ($_POST['submit'])
       {
    		$header = 'From: '. $_POST['from'];
    		$subject = $_POST['subject'];
    		$body = $_POST['body'];
    		$to = $_POST['to'];
    		if(!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $to))
    		{
    			echo "The recipient's e-mail was invalid.";
    		}
    		else if(!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $_POST['from']))
    		{
    			echo "Your e-mail was invalid.";
    		}
    		else
    		{
    			if ($body == "")
    			{
    				echo "Body left blank.";
    			}
    			else if ($subject == "")
    			{
    				echo "Subject left blank.";
    			}
    			else
    			{
    				mail($to, $subject, $body, $header);
    				echo 'Email sent.';
    			}
    		}
       }
    ?>
    
     <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
      <div>
       To: <input type="text" name="to" value="">
       Subject: <input type="text" name="subject" value="" />
       Body: <textarea name="body"></textarea>
       From: <input type="text" name="from" value="">
       <input type="submit" name="submit" value="Send Email">
      </div>
     </form>

Closed Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. [OFF] Script Instillations (Now Accepting)
    By kryptonyte in forum The Marketplace
    Replies: 0
    Last Post: 08-02-2006, 02:15 AM
  2. Server UP time Script
    By dharmil in forum Scripts & 3rd Party Apps
    Replies: 2
    Last Post: 04-03-2006, 04:39 PM
  3. Just a question about my script
    By rubens in forum Free Hosting
    Replies: 11
    Last Post: 02-28-2006, 01:41 PM
  4. CGI - script, Advertisement _HELP.
    By kaliforna in forum Free Hosting
    Replies: 12
    Last Post: 06-02-2005, 06:01 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers