Results 1 to 10 of 10

Thread: .

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date: Jul:2001
    Location:
    Posts: 1,711

    .


    . ,
    .
    Last edited by GinFis; 30th October 2007 at 19:38.
    Hakuna matata

  2. #2
    hmm BornToDrink's Avatar
    Join Date: Aug:2005
    Location: .
    Posts: 11,573
    php :
    $to, $title, $msg .
    sendmail -, .

    Edit:
    ,
    Code:
    <?php
    $to = "yourmail@somemail.com";
    $subject = "Hi!";
    $body = "Hi,\n\nHow are you?";
    $from = "borntodrink@hwbg.com"; // :-)
    $headers = "From: $from\r\n" . "X-Mailer: php";
    if (mail($to, $subject, $body, $headers)) {
       echo("<p>Message sent!</p>");
    } else {
       echo("<p>Message delivery failed...</p>");
    }
    ?>
    Last edited by BornToDrink; 29th October 2007 at 22:13.
    Hey, mother, I come bearing a gift. I'll give you a hint. It's in my diaper and it's not a toaster.
    .

  3. #3
    Registered User
    Join Date: Jul:2001
    Location:
    Posts: 1,711
    - .

    (),
    , 1and1.com.

    , :

    formmail :
    http://nms-cgi.sourceforge.net/formm...pat-3.14c1.zip.
    ( FAQ 1and1.com).
    ,
    /cgi-bin.
    form .... action=, - .

    :

    <form name="ime_na_formata" method="POST" action="/cgi-bin/FormMail.pl" enctype="text/plain">
    .........
    </form>
    Hakuna matata

  4. #4
    Registered User
    Join Date: Jul:2001
    Location:
    Posts: 1,711
    , BornToDrink ,
    -, .

    , /php/formmail.php,
    :

    <form name="ime_na_formata" method="GET" action="/php/FormMail.php" enctype="text/plain">
    .........
    </form>

    , GET.
    Hakuna matata

  5. #5
    White awesomeness z0ne's Avatar
    Join Date: Feb:2002
    Location: o
    Posts: 13,331
    ! "POST"!

  6. #6
    hmm BornToDrink's Avatar
    Join Date: Aug:2005
    Location: .
    Posts: 11,573
    Quote Originally Posted by GinFis View Post
    , BornToDrink ,
    -, .

    , /php/formmail.php,
    :

    <form name="ime_na_formata" method="GET" action="/php/FormMail.php" enctype="text/plain">
    .........
    </form>

    , GET.
    GET? Zone, - POST, :
    Code:
    <?php
    if (!isset($_POST['check'])) {
    ?>
    <form method="POST" action="">
    	<table>
    		<tr>
    			<td>Email: </td>
    			<td><input type="text" name="email"></td>
    		</tr>
    		<tr>
    			<td>Subject: </td>
    			<td><input type="text" name="subject"></td>
    		</tr>
    		<tr>
    			<td>Email text: </td>
    			<td><textarea style="width: 330px; height: 100px;" name="textBody"></textarea></td>
    		</tr>
    		<tr>
    			<td><input type="submit" value="Send Email"></td>
    			<input type="hidden" value="1" name="check">
    		</tr>
    	</table>
    
    
    </form>
    <?php
    
    	
    }else {
    	$to = "yourmail@somemail.com";
    	$from = $_POST['email'];
    	$subject = $_POST['subject'];
    	$body = $_POST['textBody'];
    	$headers = "From: $from\r\n" . "X-Mailer: php";
    	if (mail($to, $subject, $body, $headers)) {
    		echo("<p>Message sent!</p>");
    	} else {
    		echo("<p>Message delivery failed...</p>");
    	}
    }
    ?>
    .php , ... .
    PS - $to = "yourmail@somemail.com"; .
    Last edited by BornToDrink; 31st October 2007 at 14:13.
    Hey, mother, I come bearing a gift. I'll give you a hint. It's in my diaper and it's not a toaster.
    .

  7. #7
    Bombera's Avatar
    Join Date: Jul:2001
    Location: 4EVA
    Posts: 13,833
    INPUT- , , . .

    .. .
    EVGA X299 FTW K|i9-7960X@4.7|4x8 Patriot Viper Steel 4000|GTX 1660 Ti|970 EVO 1 TB|Seasonic Focus GX-1000|Xigmatek Elysium|
    Rampage IV Extreme BE|E5-1680v2@4.7|4x4 HyperX 1866|Cougar Aqua 240|GTX 1050 Ti|970 EVO 1/4 TB|CM 850 SilentPro|HAF-X|

  8. #8
    hmm BornToDrink's Avatar
    Join Date: Aug:2005
    Location: .
    Posts: 11,573
    , .
    Hey, mother, I come bearing a gift. I'll give you a hint. It's in my diaper and it's not a toaster.
    .

  9. #9
    Registered User
    Join Date: Jul:2001
    Location:
    Posts: 1,711
    POST ,
    , ,
    SUBMIT.
    Hakuna matata

  10. #10
    Bombera's Avatar
    Join Date: Jul:2001
    Location: 4EVA
    Posts: 13,833
    .
    EVGA X299 FTW K|i9-7960X@4.7|4x8 Patriot Viper Steel 4000|GTX 1660 Ti|970 EVO 1 TB|Seasonic Focus GX-1000|Xigmatek Elysium|
    Rampage IV Extreme BE|E5-1680v2@4.7|4x4 HyperX 1866|Cougar Aqua 240|GTX 1050 Ti|970 EVO 1/4 TB|CM 850 SilentPro|HAF-X|

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |