Jul 25, 2008

Email Script/form With Php - how to make a simple email script using php

Free Web Hosting, No Ads > CONTRIBUTE > Tutorials
Pages: 1, 2, 3, 4

free web hosting

Email Script/form With Php - how to make a simple email script using php

snlildude87
Today, I'm going to show you how to make an email script using PHP and HTML. Most people usually put <a href="mailto:blahblah@blah.blah">Email me</a> if they want an email link on their site, but there are several cons to this.

First, it's very inconvenient for those people who use web-based mail such as Yahoo!, Hotmail, or Gmail because that darn Micro$oft Outlook program comes up if one accidently click the link.

Second, you are very suseptible to spam bots because they scan your HTML source code for anything with the same pattern as an email address and add it to their database. If you are pretty popular on Google, you can expect mails like "Unlimited Bandw1dth!!1" or "Cows F0und 1n 0utersp4ace!!" in your inbox soon.

The Tutorial

Make a new file called mail.php in Notepad and copy and paste the following code:
CODE
<html>
<head>
 <title>My first email script</title>
</head>
<body>
 <?php
 if($content)
 {
  $from = $_POST["from"];  //gets the name of the person
  $email = $_POST["email"];  //gets their email address
  $content = "This message is from $from whose email address is $email.\r\n-----------\r\n ";  //little intro of your email message that you will see in your inbox
  $content = $content . $_POST["content"]; //concatenates the intro with the real content
  $content = wordwrap($content, 70); //message must be no longer than 70 characters per line (PHP rule), so we wrap it
  mail('snlildude87@gmail.com', 'Someone Sent You Something!!!', $content); //first argument = your email address; second argument = subject of email (make it very catchy so you won't miss it); third argument = the content (DO NOT CHANGE THIS!!)
  echo "Your message has been sent, and if I like you, then you will receive a reply. Thank you."; //what you want to tell the user after sending
 }
 ?>
 <form method="post" action="mail.php">
  <p>Name: <input type="text" name="from" title="Your name"></p>
  <p>Email: <input type="text" name="email"></p>
  <p>Message: <textarea rows="5" cols="15" name="content"></textarea></p>
  <input type="submit" value="Submit">
 </form>
 </body>
</html>


That's it! If you want to see the email script/form in action, I have set one up on my site here: http://sang.trap17.com/aboutme.htm

Also, when someone sends you something with my script, you have to manually type in their email address. So after someone sends you a message, you will get the following in your email:
QUOTE
This message is from [the person's name] whose email address is [their email address].
-----------
[content of message]

You will have to copy whatever their email address is, and go to Compose in your mail provider to send them a reply. It's a hassle, but I promise, it won't take more than 1 minute. smile.gif

If you have any questions, concerns, comments, or ideas, feel free to post them below. Thanks and good luck!! smile.gif

 

 

 


Reply

scab_dog
This is great, YDA snill, I was looking for one like this for ages!!

Reply

leiaah
I've been looking for this! There's one in the trap17 cpanel called mailform/formail but I can't follow the instructions so thanks!

Reply

Spectre
Just for the record, you can include extra headers as the fourth argument. One that you might want to take particular note of is the 'From:' header - if it is not specified, the mail will be sent from the server's default email address.

In this case, the best choice would probably be to use the values entered as the users' name and email. For example:
CODE
mail(
 'snlildude87@gmail.com',
 'Someone Sent You Something!!!',
 $content,
 "From: $from <$email>"
);

Reply

boyCradle
wow! this is nice, i always have problems with that mailto: codes at html. this will be helpful for those internet users not using Microsoft outlook. it is very anoying when the Outlook window comes out everytime i click the mailto links at websites. thanks

Reply

hype
Wow, we can place it at any part of the website as long as its with the <? php ?> tag right?

Reply

snlildude87
QUOTE(hype @ Apr 19 2005, 07:04 AM)
Wow, we can place it at any part of the website as long as its with the <? php ?> tag right?
*


Well, yes. Only this part is the PHP code (this is the part you put in between the <?php ?>:
CODE
if($content)
{
 $from = $_POST["from"];  //gets the name of the person
 $email = $_POST["email"];  //gets their email address
 $content = "This message is from $from whose email address is $email.\r\n-----------\r\n ";  //little intro of your email message that you will see in your inbox
 $content = $content . $_POST["content"]; //concatenates the intro with the real content
 $content = wordwrap($content, 70); //message must be no longer than 70 characters per line (PHP rule), so we wrap it
 mail('snlildude87@gmail.com', 'Someone Sent You Something!!!', $content); //first argument = your email address; second argument = subject of email (make it very catchy so you won't miss it); third argument = the content (DO NOT CHANGE THIS!!)
 echo "Your message has been sent, and if I like you, then you will receive a reply. Thank you."; //what you want to tell the user after sending
}
?>

The rest is all HTML. You can, of course, always convert HTML to PHP...

I hope that answered your question.

 

 

 


Reply

Carsten
Unfortunately you might need to include more headers other then the From header if you want to send e-mail to big free e-mail providers like Hotmail. The mail() function has the syntax of mail($to, $subject, $content, $headers). To add some more required headers, just add a comma after $content and add a variable $headers. Then, fill the variable $headers with something like this:
CODE
$headers = "MIME-Version: 1.0\n"; // don't change
$headers .= "Content-type: text/html; charset=iso-8859-1\n"; // don't change
$headers .= "X-Priority: 1\n"; // don't change
$headers .= "X-MSMail-Priority: High\n"; // don't change
$headers .= "X-Mailer: php\n"; // change php in what you like
$headers .= "From: \"" . $from . "\" <" . $email . ">\n";
$headers .= "Reply-To: \"". $from ."\" <". $email .">\n";
Now you don't even have to copy/paste the users e-mail adress, you can directly click reply and send them an e-mail.

To make it clear, replace
CODE
mail('snlildude87@gmail.com', 'Someone Sent You Something!!!', $content);
with
CODE
mail('snlildude87@gmail.com', 'Someone Sent You Something!!!', $content, $headers);
and put all the $headers in front of that.

Reply

Newton
I'd just like to add that mail headers should use \r\n line breaks, as per RFC 2822 section 2.1.

Also if you want something more 'complicated', use PHPMailer.

Reply

hype
I believe you have to replace this as well
CODE
mail('snlildude87@gmail.com', 'Someone Sent You Something!!!', $content);


to

CODE
mail('youremail@yourdomain.com', 'Someone Sent You Something!!!', $content);

Reply

Latest Entries

farsiscript
hi all, good job
i write this script at hotscript ::
http://www.hotscripts.com/Detailed/59330.html

* thi script has 4 file :

config.php :
CODE
<?php
$email="admin@fascript.com";  
// Type Your email address here
$thxemial="Thank Your for Sending Email to Us";
//Your thanks Note
?>


mail.php:
CODE
<?php
include ("config.php");
$sub = $_POST['sub'];
$text = $_POST['text'];
$memail = $_POST['memail'];
mail($email, $sub, $text ,"From: $memail \nReply-To: $memail");
mail($memail, $sub, $thxemial,"From: $email \nReply-To: $email");
?>


Send.htm
CODE
<html>

<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Your Email Address</title>
</head>

<body>

<form method="POST" name="mail" action="mail.php">
    <p><font face="Verdana" style="font-size: 8pt">Your Email Address </font></p>
    <p><input type="text" name="memail" size="20"></p>
    <p><font face="Verdana"><span style="font-size: 8pt">Your Mail Subject</span></font></p>
    <p><input type="text" name="sub" size="20"></p>
    <p><font face="Verdana" style="font-size: 8pt">Your Mail Body</font></p>
    <p><textarea rows="2" name="text" cols="20"></textarea></p>
    <p><input type="submit" value="Send Email" name="Submit"></p>
</form>

</body>

</html>


Readme and install :
install ::
1 - open config.php by notepad and wirte your email address at line 2
2 - write your thanks note at line 4
3 - Save config.php and close
4 - Make one form by this code ::
<form method="POST" name="mail" action="mail.php">
<p><font face="Verdana" style="font-size: 8pt">Your Email Address </font></p>
<p><input type="text" name="memail" size="20"></p>
<p><font face="Verdana"><span style="font-size: 8pt">Your Mail Subject</span></font></p>
<p><input type="text" name="sub" size="20"></p>
<p><font face="Verdana" style="font-size: 8pt">Your Mail Body</font></p>
<p><textarea rows="2" name="text" cols="20"></textarea></p>
<p><input type="submit" value="Send Email" name="Submit"></p>
</form>
5 - and enjoy it


Copyright ::
www.fascript.com
You can find next version of this script at http://famail.fascript.com
if you have question about this script you can send email

I Hope trap17 Members enjoy this script rolleyes.gif


Reply

sasuke13
Wow man great thx for giving me this script i was really searching for this script from so many days. I had searched google, yahoo etc... but none of them worked. But i found one in google but that script used to send the mail from contact form after few hours or so...... Those scripts lack, but urs is good script man. Please kepp posting the scripts for many programs and also i want the script for posting a google adsense banner on my forums pages, if you know the script please kindly let me know about this to me as soon as possible.

Reply

True2Earn
I think I overlooked something. Add the following to the thankyou.php right after the <body> tag
CODE
<?
$ip = $_POST['ip'];
$httpref = $_POST['httpref'];
$httpagent = $_POST['httpagent'];
$visitor = $_POST['visitor'];
$visitormail = $_POST['visitormail'];
$notes = $_POST['notes'];
$attn = $_POST['attn'];
?>

and it should fix a few things.

EDIT: Here is a better example of the contact form in action at my main site True2Earn.com. Sometimes, simplicity is the best way as this example shows. Plus, I set it to open in a new window and not directly on the page. One of those little "tricks" to keep people on your website biggrin.gif

Reply

AnGeL KiSS
Wow this is useful, I tried it and it works, thought I don't get how I'm gonna have a hidden thing in the form (the subject) but it doesn't show in the Email.

Reply

True2Earn
Here's another way of having a feedback form on your website. This is the method I use since it works great and, I guess you can say, professional. What I do is create a page, such as contact.php and a page, such as thankyou.php. I will break it down into the bare essentials for you and you can modify it to match your own site. Oh, it also checks for a valid email address as well as a drop down box for the subject field of the email.

contact.php
CODE
<html>
<head><title>Feedback Form</title></head>
<body>
<h3 align=center>Write to us!</h3><br><br>
<FORM action=thankyou.php method=post>
<?
    $ipi = getenv("REMOTE_ADDR");
    $httprefi = getenv ("HTTP_REFERER");
    $httpagenti = getenv ("HTTP_USER_AGENT");
?>
    <INPUT type=hidden value="<?php echo $ipi ?>" >
    <INPUT type=hidden value="<?php echo $httprefi ?>" >
    <INPUT type=hidden value="<?php echo $httpagenti ?>" >
    Your Name:<BR><INPUT size=35 name=visitor><BR>
    Your Email:<BR><INPUT size=35 name=visitormail <BR><BR><BR>
    Attention:<BR>
    <SELECT size=1 name=attn>
        <OPTION value=" General Support " selected>General Support</OPTION>
        <OPTION value=" Refunds ">Refunds</OPTION>
        <OPTION value=" Webmaster ">Webmaster</OPTION>
    </SELECT><BR><BR>
    Mail Message:<BR><TEXTAREA name=notes rows=4 cols=40></TEXTAREA><BR>
    <INPUT type=submit value="Send Mail"><BR>
</FORM>
</body>
</html>

After the email is typed up and ready to be sent, the user clicks on the Send Mail button and are taken to the thankyou.php page. The script makes sure all fields are filled out. The only place in the script that needs to be edited is clearly marked.
CODE
<html>
<head><title>Thank You For Your Feedback!</title></head>
<body>
    <h3 align=center>
        Thank you for your feedback.<br>
        We value your input.<br>
        We will get back to you as soon as possible!
    </h3><br>
    <?
        if(!$visitormail == "" && (!strstr($visitormail,"@") || !strstr($visitormail,".")))
        {
            echo "<h2>Use Back Button - Enter a valid e-mail</h2>\n";
            $badinput = "<h2>Feedback was NOT submitted</h2>\n";
        }
        if(empty($visitor) || empty($visitormail) || empty($notes ))
        {
            echo "<h2>Use Back Button - make sure you fill in all fields</h2>\n";
        }
        echo $badinput;
        $todayis = date("l, F j, Y, g:i a");
        $attn = $attn;
        $subject = $attn;
        $notes = stripcslashes($notes);
        $message = " $todayis [EST] \n
        Attention: $attn \n
        Message: $notes \n
        From: $visitor ($visitormail)\n
        Additional Info : IP = $ip \n
        Browser Info: $httpagent \n
        Referral : $httpref \n";
        $from = "From: $visitormail\r\n";
        mail("you@yourdomain.com", $subject, $message, $from); //CHANGE THIS TO YOUR EMAIL
    ?>
    <P align=center>
        Date: <?php echo $todayis ?><BR>
        Thank You : <?php echo $visitor ?> ( <?php echo $visitormail ?> )<BR>
        Your message has been sent.<BR>We will be in touch shortly.<BR><BR>
        Attention: <?php echo $attn ?><BR>
        Message:<BR><?php $notesout = str_replace("\r", "<br/>", $notes);
        echo $notesout; ?><BR>
        <?php echo $ip ?>
    </P>
</body>
</html>

And there you have a complete emailing systen in php for your website. Feel free to modify it any way you see fit. You can even copy the above code and save it in two files, one named contact.php and one named thankyou.php and change the one line to your email address and it will work "right out of the box." One of the features of the thankyou page is it informs the sender that the email has been sent as well as displaying their name, date, subject of the email, text of the message sent and their IP address. I hope you find this code useful.

EDIT: I forgot to add, you can see this script in action at Everything For Free.

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Pages: 1, 2, 3, 4
Recent Queries:-
  1. form php send to third person script - 1.20 hr back. (1)
  2. simple email inbox compose mailer in php code - 1.67 hr back. (1)
  3. php script form "action=" - 11.70 hr back. (1)
  4. make simple e-mail script - 12.09 hr back. (1)
  5. send email and change the date php and mailto: - 15.88 hr back. (1)
  6. submit from to email script - 18.21 hr back. (2)
  7. send button email script form - 31.66 hr back. (1)
  8. email script that show the info after submit - 31.75 hr back. (1)
  9. php script "email link" - 33.38 hr back. (1)
  10. html form, how to make a action a variable? - 39.58 hr back. (1)
  11. who to make simple a php email - 48.09 hr back. (2)
  12. how to make a simple form on site - 62.69 hr back. (1)
  13. simple email script - 1.62 hr back. (3)
  14. writing simple mail script - 86.39 hr back. (1)
Similar Topics

Keywords : email, script, form, php, make, simple, email, script, php

  1. Verifying Your Email Address
    A Simple PHP Tutorial. (0)
  2. [phpbb] Member Last-visit Report Script
    for phpbb2 databases (0)
    One flaw in the phpbb2 administration section is a report to list out the 'last-visit'
    time/date of the membership. I wrote a script to do exactly that and will be sharing the script with
    you here. the first section defines the variables required for the Database connection, finding the
    right database, supplying passwords, etc. HTML DEFINE ('DB_USER', 'YOUR DB
    USER NAME'); // change these defined values to suit your own situation DEFINE
    ('DB_PASSWORD', 'YOUR DB PASSWORD'); DEFINE ('DB_HOST', '....
  3. Background Image Swap Script
    Change a Background Image based on clock time (15)
    Background Image Changer Script To swap the background image from your CSS file according to the
    Server Clock Time. 1.) In your CSS file, add the following rule: CODE body {
        background: url(time.png); } 2.) Create a "folder" named time.png. 3.) Into the
    folder, place three images named morning.png, day.png, night.png. 4.) Also, in the same folder,
    create an index.php file and copy/paste the following script. CODE <?php $hour =
    date('H'); if ($hour < 12 ) {     $image =
    "morning.png"; } ....
  4. Image Rotator Script (another One)
    easy to implement (0)
    In case you haven't noticed, I have a different Avatar display on the Forum each time the page
    is refreshed. /biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif"
    /> For those of you who might want the script to do that, here is the one I am using: HTML
    $filesp = glob('*.png'); if(empty($filesp)){ echo
    'no images found...die br >'; die(); } else{ foreach ($filesp as
    $file) { $img_array[] = trim($file); }....
  5. For ... Next Loops And Script Planning
    My Fifth PHP Tutorial (2)
    Be sure to read the other ones. They are located in the TUTORIALS section, and at the time of this
    writing all on the first page. Intro To PHP Tutorial 5 - For ... Next Loops and Planning Scripts
    Released 4/15/07 By Chris Feilbach aka GhostRider Contact Info: E-mail: assembler7@gmail.com AIM:
    emptybinder78 Yahoo: drunkonmarshmellows Website: http://www.ghostrider.trap17.com Before I start
    talking about what wonderful things loops are and all the cool stuff they can do, I want to address
    something first. I was asked about something to write in PHP. There isn't....
  6. How To: Ip Configuration Script (win Xp)
    If you travel a lot with your laptop, and need to switch between diff (0)
    How To: IP Configuration Script (win XP) If you travel a lot with your laptop, and need to switch
    between different IP's in different locations, this script is for you. There are many programs
    that handle this task very well, but they cost sometimes pretty big money. This tutorial will show
    you how to make your own IP Configuration Script for free. This script is for a static ip address
    configuration and is based on a little program called "NETSH.EXE" which is supplied with Windows.
    How it works. QUOTE Microsoft Windows XP - Using Netsh Netsh.exe is a....
  7. Php Script To Make A Link List
    From the list of the Directory Files (6)
    Well, it has been a while since I have added anything to the Tutorial Sectiion, so here is another
    script for the members to enjoy. This one creates a list of links from the contents of the directory
    which it is run from. For instance, if you run it from the public_html folder, then all the files
    (not the Directores) are listed and linked so when you click on the link, that file is parsed and
    output to the browser. Here is the code: "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    An XHTML 1.0 Strict Page to List the files in this directory ....
  8. Sending + Receiving Email Via Telnet
    using email via the command line. (8)
    ok first off im no good at writing tutorials so feel free to flame me (hey that rymes). Anyway in
    this tutorial i will basically show you how to send and receive email via the command-line terminal
    emulation program called Telnet. Now where shall i start, hmm.. Sending Email!! Sending
    Email Sending email requires a special type of server called an SMTP server (SMTP -> Simple Mail
    Transfer Protocol). SMTP is the protocol used to send email just like POP is the protocol used to
    receive. Now by default and most commonly SMTP servers run on port 25. To describe ....
  9. Php Menu Bulding Script And Site Template
    available for download (0)
    A Php Menu-builder Tutorial This Sidebar Menu-builder code and the php scripts are adapted from
    a Tutorial on the Astahost.com Forum titled : CMS101 - Content Management System Design .
    Since the original tutorial's author (vujsa) did such a marvellous job of describing the system
    in the original Topic posting, I will not attempt to explain it here, rather, I invite you to have a
    look at his Topic and learn from it. The Basic tutorial provided coding for developing a table-based
    web-site template which used php includes and embedded data to create a &....
  10. Script To Build A List Of Links
    from filenames and h3 tags (2)
    Another Unordered List Script If you remember this Script , that tutorial was about creating
    an un-ordered list of links from a list of files contained in a Folder which was specifically named
    in the script. This current Tutorial goes several steps beyond that first Tutorial by being able to
    create a list from several folder names and, more importantly, the script reads the list of links
    from a 'flat file' rather than depending on the name of the folder to be hard coded in the
    script. It is only one small step to have the folder names found in a mysql ....
  11. Page Generation Time Script
    A script to tell how long it took to generate (17)
    this is a script used to tell you or visitors how fast your page was generated for the person who is
    viewing it... Ok it is verry simple!! all you have to do is put this script on every
    page... that you want it to be on CODE <?php $starttime = explode(' ',
    microtime()); $starttime = $starttime[1] + $starttime[0];
    ?> and put it before everything on the page, for me i put it right underneith the DOCTYPE
    script which i think is a bloody waste of space to have it on there, but anyways.. ....
  12. Verifying Email Addresses
    Using a simple PHP script (8)
    This simple script will allow you to run some basic checks to make sure that any email address
    entered is actually an email address. There is no guarantee offered that this will stop every single
    fake email address, but it'll provide some protection. Now, the code! First we need to get
    the email address to verify. Here, I get it using POST from an HTML form. CODE <?php //Load
    email address from web form $email = $_POST['email']; Now, we move on
    to our first check. Does the text that has been entered look like it could b....
  13. Installing Ndstats!
    The greatest Stats script of all time. (4)
    An example of this script cna be found at http://www.own.tc/ (click enter) This is by far the
    BEST stats script and most sites use it! This is a PHP script and requires you to include files
    (Please... don't do iframes!) DOWNLOAD LINK: GO TO www.ZYMIC.com and go to Php scripts>stats
    scripts> and the current version of NDSTATS. Downlaod it and unzip it! Go to your WWW directory
    and create a folder called "ndstats". Then what you need to do is upload all of your files into
    that folder. You all should know how to do that. Then go to the top of the pag....
  14. Random Quote Script
    (6)
    Here's a little random quote script that you can use to randomly choose from an array of quotes
    you provide. It's very easy to use on any page as it's an external script, you just call it
    from your page. I wouldn't use it for any more than about 50 quotes though, it would probably
    slow your site down too much. Here's the code: var ar = new Array(44) ar = "Do not meddle in
    the affairs of wizards, for they are subtle and quick to anger." ar = "Faithless is he that says
    farewell when the road darkens." ar = "I cordially dislike allegory in all its ....
  15. How To Use Trap17 Cgi Formmail
    a built-in script in every hosting (15)
    This tutorial is using TRAP17 hosting's built-in script called cgiemail. There are several
    hundreds of free scripts you can download and install it yourself but why not use what is already
    provided for you, if all you need is a simple submit and data collection? Let's begin. There
    are three things you need to remember: 1) you can rename the file however you'd like 2) two
    files (which I'll name them submitForm.html and template.txt ) must be in the same directory
    3) first two lines in template.txt must EXIST. Write your submitForm.html (where you ....
  16. [php] Simple Newsletter Script
    (8)
    This tutorial will give you the code needed and tell you how to implement it. First off you need to
    create a file called mailing.php this will be the file that processes the adding of emails to the
    list. CODE <?php $email = $_POST['email']; $file =
    fopen("mailing.txt", "a"); fwrite($file, "\n" .
    $email); fclose($file); header("Location:
    mailing_thankyou.php"); ?> Next you need to create a file called
    mailing_thankyou.php , simple a p....
  17. Secure The Email Addresses On Your Website!
    Wonderful script and useful! And working (10)
    Just follow the instructions below: /* Secure Email Function by Juan Karlo Aquino de
    Guzman Website: http://www.karlo.ph.tc and http://www.abs-cbn.ph.tc E-mail:
    http://www.karlo.ph.tc/send.php Usage: showEmail("support@microsoft.com",0); OR
    showEmail("support@microsoft.com",1); Types: 0 = ordinary random 1 = more secure random To
    include to a script: include_once("email_secure.php"); */ And here is the code :
    CODE <?php /*     Secure Email Function by Juan Karlo Aquino de Guzman     Website:
    http://www.karlo.....
  18. E-mail Mailer Script 0.1
    useful for website visitors (4)
    Are you pissed off when you are putting e-mail in your website, you always get spammers? Well,
    here's the solution. Just change the default variables to anything that you like, etc... follow
    the instructions on the script.. Here it is... hope you like it /smile.gif' border='0'
    style='vertical-align:middle' alt='smile.gif' /> CODE <?php //E-mail Mailer Script 0.1
    by Juan Karlo de Guzman //FOR TRAP17 ONLY... DEMO VERSION... DO NOT DISTRIBUTE
    header("Content-type: text/html; CHARSET=UTF-8");
    $int_rand=mt_rand(1,20); if&#....
  19. Simple Php Counter Script
    How to make a simple php counter script (2)
    In this tutorial i will explain how to make a simple script writen in PHP...that uses .txt file.
    CODE <?php // script writen by tema $a = fopen ("count.txt",
    "r"); // 1. $bytes = 4;         $x = fread($a, $bytes); //
    2. $y=$x + 1;                   // 3. $fp = fopen ("counter/count.txt",
    "w+");  // 4. fwrite ($fp, "$y");     // 5. fclose
    ($fp);                // 6. echo "Posjeta:$y";                // 7.
    ?>....
  20. How To Check Email Headers?
    (9)
    Well, I didn't think of making this topic here, till one of the members asked me how to retrieve
    full email headers. It's quite simple actually. In Yahoo! click on the Full Headers
    link on the right hand top corner of the message table. You will see all the headers. In GMail
    Click on the More Options link. Then click on show original . There you go! Googlue!....
  21. Php Guessing Script
    Script game.. (4)
    Here's the guessing script, they guess a number and checks if they are right or wrong.. CODE
    <form method="guess.php?action=yes"> <input type="text"
    name="t_guess"> <br> <input type="submit" value="Guess">
    <?php if($action==yes){ //have the number that they are suppose to guess...
    $guess=14; //end if($t_guess==$guess){ print "Good job! Guess was
    right!"; }else{ print "Guess was wrong! Try again!"; } } ?> Tha....
  22. Php Quiz Script
    Make quizzes for your site. (20)
    Hello all, A little bit back I decided to make a quiz scriptjust out of no where lol. However it
    doesnt do anything special but I am going to make an email mod for it so that it will email results
    to your email address. So here is the basis of it. INSTRUCTIONS: Open a new page in your text
    editor and paste in the following code. CODE <?php $qid = "Quiz ID-00"; ?>
    <html> <head> <title><? echo "Gamers Pub $qid";
    ?></title> </head> <body> <p><h3><? echo "....
  23. Php Emailer/contact System
    An email or contact system for your site (20)
    Hello all, Here is an easy Emailer or Contact system that allows visitors or members of your site
    to email you just by filling out a form. So here is what you need to do to set it up. First open up
    a new page in your text editor and paste in the following code. CODE <?php $Name =
    $_POST['Name']; $Subject = $_POST['Subject'];
    $Email = $_POST['Email']; $Site =
    $_POST['Site']; $Message=$_POST['Message'];
    $align = $_POST[&#....
  24. Mail Form (php)
    This is a great email form script. (3)
    save this page as formmail.php Code: QUOTE $MailTo = "your email"; $MailSubject
    = "contact"; $MailHeader = "From: $s1"; $MailSent = "Put here the information you
    want to be shown after the message is sent."; if ($s1 == ""){ echo "You did not put your
    name ."; } else { $MailBody = "Name : $s1\n"; } if ($s2 == ""){ echo "You did
    not put your E-Mail ."; } else { $MailBody .= "Email : $s2\n"; } if ($s3 ==
    ""){ } else { $MailBody .= "Message : $s3\n"; } { mail($MailTo....
  25. Multiple Admin Login (php)
    This is a script that doesnt requre SQL (3)
    first off make a login.html page Code: QUOTE Admin Login Username: Password:
    then make a check.php page Code: QUOTE $admin1 = "admin1"; //
    first admin username $adm_pass1 = "password1"; // first admin password $admin2 =
    "admin2"; // second admin username $adm_pass2 = "password2"; // second admin password
    if(($username == $admin1 && $password == $adm_pass1) || ($username ==
    $admin2 && $password == $adm_pass2)){ echo "Congratulations " . $_POST . " ....

    1. Looking for email, script, form, php, make, simple, email, script, php

Searching Video's for email, script, form, php, make, simple, email, script, php
Similar
Verifying
Your Email
Address - A
Simple PHP
Tutorial.
[phpbb]
Member
Last-visit
Report
Script - for
phpbb2
databases
Background
Image Swap
Script -
Change a
Background
Image based
on clock
time
Image
Rotator
Script
(another
One) - easy
to implement
For ... Next
Loops And
Script
Planning -
My Fifth PHP
Tutorial
How To: Ip
Configuratio
n Script
(win Xp) -
If you
travel a lot
with your
laptop, and
need to
switch
between
diff
Php Script
To Make A
Link List -
From the
list of the
Directory
Files
Sending +
Receiving
Email Via
Telnet -
using email
via the
command
line.
Php Menu
Bulding
Script And
Site
Template -
available
for download
Script To
Build A List
Of Links -
from
filenames
and h3 tags
Page
Generation
Time Script
- A script
to tell how
long it took
to generate
Verifying
Email
Addresses -
Using a
simple PHP
script
Installing
Ndstats!
- The
greatest
Stats script
of all time.
Random Quote
Script
How To Use
Trap17 Cgi
Formmail - a
built-in
script in
every
hosting
[php] Simple
Newsletter
Script
Secure The
Email
Addresses On
Your
Website!
- Wonderful
script and
useful!
And working
E-mail
Mailer
Script 0.1 -
useful for
website
visitors
Simple Php
Counter
Script - How
to make a
simple php
counter
script
How To Check
Email
Headers?
Php Guessing
Script -
Script
game..
Php Quiz
Script -
Make quizzes
for your
site.
Php
Emailer/cont
act System -
An email or
contact
system for
your site
Mail Form
(php) - This
is a great
email form
script.
Multiple
Admin Login
(php) - This
is a script
that doesnt
requre SQL
advertisement



Email Script/form With Php - how to make a simple email script using php



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE