Results 1 to 11 of 11
Thread: e-mail
Hybrid View
-
27th April 2017 15:59 #1Registered User
Join Date: Jan:2017
Location: Bulgaria
Posts: 146
e-mail
PHP, e-mail , .
?
<?php
if(isset($_POST['sendmail'])){
//
$name = $_POST['name'];
$email = $_POST['email'];
$msg = $_POST['msg'];
//
if($name == ""){ echo " !"; }
//
elseif($email == ""){ echo " e-maila"; }
//
elseif($msg == ""){ echo " "; }
//
else{
$msg2 = "$name :\n\n$msg\n\n : $email";
if(mail("@.com", "- ", $msg2, "From: $email\r\nReply-to: $email\r\n")){
echo " !";
}else{ echo " !"; }
}
}
?>
//
<form method="post" action="mail.php">
: <input type="text" name="name" /><br />
E-mail: <input type="text" name="email" /><br />
: <textarea name="msg" cols="50" rows="6"></textarea><br />
<input type="submit" name="sendmail" value="" />
</form>
-
27th April 2017 17:02 #2Registered User
Join Date: Sep:2006
Location: everywhere
Posts: 348
. ...
. ( , , HTTP server). ( ) .
-
27th April 2017 19:09 #3Mire-x
Join Date: Apr:2005
Location: Sofia
Posts: 763
-
28th April 2017 15:57 #4Registered User
Join Date: Jan:2017
Location: Bulgaria
Posts: 146
-
28th April 2017 17:14 #5Registered User
Join Date: Feb:2005
Location: ,
Posts: 181
25 localhost. php SMTP smtp_port, , . http://php.net/manual/bg/mail.configuration.php. (open relay). - Linux apache php . . Windows, .
-
28th April 2017 23:46 #6
Windows - hMailServer - , . .
production . . MS SQL Compact , mysql.
-
27th April 2017 19:19 #7Registered User
Join Date: Jan:2017
Location: Bulgaria
Posts: 146
-
27th April 2017 21:18 #8Registered User
Join Date: Oct:2013
Location: GB
Posts: 340
- , . -> xampp-a - apache\logs\error.log
- / .Last edited by gan4o; 27th April 2017 at 21:46.
-
27th April 2017 22:01 #9
-
27th April 2017 22:49 #10




Reply With Quote


Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in