Results 1 to 25 of 45
Hybrid View
-
19th March 2009 13:25 #1Registered User
Join Date: Mar:2009
Location:
Posts: 37
e-mail. ,,e-mail .
-
19th March 2009 13:29 #2
-
19th March 2009 13:47 #3
, , , .
- , , IP- , 1 .
- captcha, .
, .
-
19th March 2009 15:45 #4Registered User
Join Date: Mar:2009
Location:
Posts: 37
, ?
Note: Normally these settings should be given to you by your host provider.
Host (edit box) - Type here the hostname of the smtp server.
Port (edit box) - Type here the port the smtp server runs on.
Hello (edit box) - Type here some text to be sent as the HELO command (typically the hostname of the machine this script runs on).
Authentication (check box) - Check this box if you will use basic authentication.
Username (edit box) - If Authentication is checked, type username for authentication.
Password (edit box) - If Authentication is checked, type password for authentication.
-
19th March 2009 18:08 #5
, ?
standalone smtp sockets ..
mail() PHP.
. hotscripts.com .
( - )
host: localhost
port: 25
Helo: www
.
-
19th March 2009 22:24 #6Registered User
Join Date: Jan:2009
Location:
Posts: 122
. mail() PHP ez .
a CAPTCHA
-
19th March 2009 23:56 #7
-
20th March 2009 10:40 #8Registered User
Join Date: Mar:2009
Location:
Posts: 37
CGI, Mailto Form, . , Tophost .
-
20th March 2009 11:17 #9
, - "" , . , - .
, , , - , , .
, ..
3 , , , -:
$submit = (isset($POST['name']));
if ($submit) {
$name = $_POST['name'];
$email = $_POST['email'];
$text = $_POST['text'];
$text = ": ".$name."\r\n".$text;
mail("twoqt_email_adres", "KONTAKT FORMA", $text, "From: ".$email);
header("Location: tekushtiq_script.php?sent=1");
exit;
}
HTML- , " " message-:
<?php
if (isset($_GET['sent']) && $_GET['sent']=='1') {
echo " ";
}
?>
, PHP, .
-
20th March 2009 15:48 #10Registered User
Join Date: Mar:2009
Location:
Posts: 37
, , .
-
20th March 2009 16:20 #11
-
31st March 2009 10:40 #12Registered User
Join Date: Mar:2009
Location:
Posts: 37
tophost , . webmail, .
-
31st March 2009 10:54 #13
mail().
: yourdomain.com/webmail
php :
yourmail@somemail.com , .Code:<?php if (!isset($_POST['submit_mail'])) { ?> <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" name="submit_mail"></td> </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>"); } } ?>
, , .
ps - .. .
Hey, mother, I come bearing a gift. I'll give you a hint. It's in my diaper and it's not a toaster.
.
-
3rd April 2009 09:44 #14Registered User
Join Date: Mar:2009
Location:
Posts: 37
, . webmail , .
-
4th April 2009 14:39 #15
-
7th April 2009 14:11 #16Registered User
Join Date: Mar:2009
Location:
Posts: 37
, .
reset.form method="POST" action="contact.php">
Name:
<input type="text" name="name" size="19"><br>
<br>
E-Mail:
<input type="text" name="email" size="19"><br>
Message:<br>
<textarea rows="9" name="message" cols="30"></textarea><br>
<br>
<input type="submit" value="Submit" name="submit">
</form>
"contact.php"
<?php
if(isset($_POST['submit'])) {
$to = "mail@andrianivanov.com";
$subject = "PHP FORM TEST";
$name_field = $_POST['name'];
$email_field = $_POST['email'];
$message = $_POST['message'];
$body = "From: $name_field\n E-Mail: $email_field\n Message:\n $message";
echo "E-mail has been sent to $to!";
mail($to, $subject, $body);
} else {
echo "The message was not delivered!";
}
?>
-
7th April 2009 14:19 #17Hey, mother, I come bearing a gift. I'll give you a hint. It's in my diaper and it's not a toaster.
.
-
3rd April 2009 11:10 #18
- ,
.
.
, , pop3/smtp Yahoo webmail , , .., , , , , php . ( - ).
, , , - mail() .
-
7th April 2009 16:31 #19Registered User
Join Date: Mar:2009
Location:
Posts: 37
mail() . If . php.
-
7th April 2009 16:44 #20
if- mail() .
?! , , , .
:
, , ... , , .Code:echo "E-mail has been sent to $to!"; mail($to, $subject, $body);
PS - -, , , ( ..
).
Hey, mother, I come bearing a gift. I'll give you a hint. It's in my diaper and it's not a toaster.
.
-
7th April 2009 19:51 #21
-
7th April 2009 20:26 #22Registered User
Join Date: Mar:2009
Location:
Posts: 37
Parse error: syntax error, unexpected '}' in /users/abv/public_html/documents/form.php on line 4
, . php, , . reset , , Dreamweaver mail() php .
-
7th April 2009 20:32 #23
, ... , ...
. , .. , ... ..
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251 " /> mail.php, :. contacts.html ?Code:<html> <body><?php if (isset($_REQUEST['Your_Email'])) //if "email" is filled out, send email { //send email $email = $_REQUEST['Your_Email'] ; $subject = $_REQUEST['Your_Subject'] ; $message = $_REQUEST['Your_Message'] ; mail( " ", " : $subject", $message, "From: $email" ); echo "Thank you for using our mail form"; } else //if "email" is not filled out, display the form { echo "<form method='post' action='mailform.php'> Email: <input name='email' type='text' /><br /> Subject: <input name='subject' type='text' /><br /> Message:<br /> <textarea name='message' rows='15' cols='40'> </textarea><br /> <input type='submit' /> </form>"; } ?></body> </html>
- "":
, ( , .) php ....Code:<html> <head><title>PHP Mail Sender</title></head> <body> <?php /* All form fields are automatically passed to the PHP script through the array $HTTP_POST_VARS. */ $email = $HTTP_POST_VARS['Your_Email']; $subject = $HTTP_POST_VARS['Your_Subject']; $message = $HTTP_POST_VARS['Your_Message']; /* PHP form validation: the script checks that the Email field contains a valid email address and the Subject field isn't empty. preg_match performs a regular expression match. It's a very powerful PHP function to validate form fields and other strings - see PHP manual for details. */ if (!preg_match("/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/", $email)) { echo "<h4>Invalid email address</h4>"; echo "<a href='javascript:history.back(1);'>Back</a>"; } elseif ($subject == "") { echo "<h4>No subject</h4>"; echo "<a href='javascript:history.back(1);'>Back</a>"; } /* Sends the mail and outputs the "Thank you" string if the mail is successfully sent, or the error string otherwise. */ elseif (mail(rado_2004@abv.bg,$subject,$message)) { echo "<h4>Thank you for sending email</h4>"; } else { echo "<h4>Can't send email to $email</h4>"; } ?> </body> </html>
Parse error: parse error in /var/www/html/mail.php on line 21 .
:
!Code:<form action="mail.php" name="contact" method="post"> <fieldset> <label>: <br /><input type="text" name="Your_Name" /></label> <label>E-mail: <br /><input type="text" name="Your_Email" /></label> <label>: <br /><input type="text" name="Your_Phone" /></label> <label>: <br /><input type="text" name="Your_Subject" /></label> <label>: <br /><textarea name="Your_Message" rows="5"></textarea></label> <div id="submit"><input type="Submit" name="Submit" value="" id="btn_submit" /></div> </fieldset> </form>
Last edited by Rampage_rado; 7th April 2009 at 20:40.
-
7th April 2009 22:48 #24
Parse error-a e zaradi mail() .
<input type="text" name="tel" />
body- , .
, , - . -
header("Content-type: text/html; charset=windows-1251");
-
7th April 2009 23:39 #25
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/mail.php:4) in /var/www/html/mail.php on line 5
Thank you for sending email
. . 1251 2 -...
- ? ..
: from . , " " ...




Reply With Quote


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