Results 1 to 6 of 6
Thread: E-Mail localhost-a ?
Hybrid View
-
1st June 2013 22:02 #1Registered User
Join Date: Apr:2013
Location:
Posts: 37
E-Mail localhost-a ?
, E-Mail localhost ? . SMTP , VIVACOM (25) , ? ?
-
1st June 2013 22:29 #2
, Windows hMailServer , .
( , HOSTS , ) , , .
, , , SPAM
. - , . 25, , .
, SPAM , . .
-
1st June 2013 22:57 #3Registered User
Join Date: Apr:2013
Location:
Posts: 37
Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in C:\AppServ\www\mail.php on line 3 *********@abv.bg ?
-
2nd June 2013 00:41 #4
.
php.ini, From: () . From: , .
"" , PHP-...
-
2nd June 2013 11:14 #5Registered User
Join Date: Apr:2013
Location:
Posts: 37
, ABV-.
, ... , , abv- ...PHP Code:<?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("admin@muzikalni.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>
-
2nd June 2013 11:27 #6




Reply With Quote
.

R9 280,
7th May 2023, 21:28 in