maddog39
Mar 7 2005, 11:28 PM
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['align']; $to = "$EmailTo"; $subject = "$Subject"; $body = "$Message\n\n\n$Site\nBy: $Name"; $headers = "From: $Email\n"; mail($to,$subject,$body,$headers); // After they've clicked "Send", this is where they are going... Change it to where you want them to go. header("Location: sent.htm"); ?>
then save this file as mailform.phpNext open up another new page in your text editor and paste in the following code. CODE <form action="mailform.php" method="post"> <input type=hidden name=EmailTo value="You@mail.com"> <!-- // Change to your email address // --> Your Name: <input type=text name=Name><br> Subject: <input type=text name=Subject><br> Your Email: <input type=text name=Email><br> Your Site: <input type=text name=Site><br> Message: <br><textarea name=Message rows=6 cols=30></textarea><br> <input type=submit value="Send"> <input type=reset value="Reset"></form>
then save that page as contact.htmFor the the last page, open up a new page in your text editor and paste in this code. CODE <p>Your message has been sent to the webmaster. You should recieve a reply shortly. </p> <p><a href="index.php" target="_self">Go Back To Index?</a></p>
and then save that page as sent.htmUpload all of the files to your server and your done. *Also note that you can just take the code from 'contact.htm' and put it in another of your webpages on your site and do whatever you want with it but dont do anything with the other files or code unless you really know what your doing. Comments are always appreciated and enjoy! 
Reply
Dooga
Mar 8 2005, 12:56 AM
Couldn't we also use the CGI bin? That would seem easier for me
Reply
millertime
Mar 8 2005, 03:02 AM
does this work for anybody or do you have to have certain things enabled in php on your server?
Reply
karlo
Mar 8 2005, 05:20 AM
QUOTE(jmiller87 @ Mar 8 2005, 11:02 AM) does this work for anybody or do you have to have certain things enabled in php on your server? I think it will work on any server. Anyways, you can use some built-in scripts like form mailers in cPanel. I love your Avatar. Where did you get it?
Reply
mizako
Mar 8 2005, 12:55 PM
Thanks, i was looking for something like this for a long time. I embedded your code and it seems to work perfectly on my site.
Reply
maddog39
Mar 9 2005, 10:58 PM
Yes this script is completley self contained and it doesnt need anything special. I havnt seen any mailer scripts in cPanel. Plus perl scripts are a pain in the butt. I like my script alot better.
Reply
GMTech
Mar 9 2005, 11:20 PM
That'd good, I will use it when I get my hosting, I'm still slowly making my way up there though...
Reply
GM-University
Mar 10 2005, 12:43 AM
Wow, nice scripts, I too will use them when my hosting is renewed, I will have to try to find a nice purpose of course though, what kind of graphics are displayed with this, you should work on a version where you can add backrounds and stuff. Nice work!
Reply
maddog39
Mar 10 2005, 09:24 PM
Theres nothing, just forms. But if I do-do something fancy it will be copyrighted and stuff. I will have restrictions to and it will be under the GPL lisence like my other PHP Programs.
Reply
karlo
Mar 11 2005, 09:59 AM
QUOTE(maddog39 @ Mar 11 2005, 05:24 AM) Theres nothing, just forms. But if I do-do something fancy it will be copyrighted and stuff. I will have restrictions to and it will be under the GPL lisence like my other PHP Programs.  Please, do explain your code!
Reply
hitmanblood
Mar 6 2008, 05:03 PM
Hello everyone. I would like to suggest that since this function mail() doesn't works always and sometimes stays on the inner server I suggest that you all use phpmailer it is a lot easier and provides more functionality then this basic function.
Reply
Deviatore
Mar 6 2008, 11:58 AM
hey i want the script to redirect to another page after the email has been sent successfully, how to do that in PHP?
Reply
iGuest
Feb 21 2008, 04:56 AM
Sending HTML email
Php Emailer/contact System
Hi, Is it possible to send email in HTML format using php script? Thanks, Jolly -reply by Jolly
Reply
iGuest
Jan 9 2008, 05:18 AM
direct php e mail for unlimited email sending
Php Emailer/contact System
Can I get a direct php e mailer to send plenty of emails to several people at a go. I don't have a web site, I am to send from the public computer. Go through the link below and see what I mean: Http://www.Trevisovolontariato.Org/readme.Php I will be grateful to hear from you soon John -john coleman
Reply
Tsunami
Aug 28 2006, 02:45 AM
i like the script however, might i make one suggestion. Try making it into one file all together, it might look somthing like this CODE <? if (!$_GET['send']) { ?> <form action="mailform.php?send=1" method="post"> <input type=hidden name=EmailTo value="You@mail.com"> <!-- // Change to your email address // --> Your Name: <input type=text name=Name><br> Subject: <input type=text name=Subject><br> Your Email: <input type=text name=Email><br> Your Site: <input type=text name=Site><br> Message: <br><textarea name=Message rows=6 cols=30></textarea><br> <input type=submit value="Send"> <input type=reset value="Reset"></form> <? } else { $Name = $_POST['Name']; $Subject = $_POST['Subject']; $Email = $_POST['Email']; $Site = $_POST['Site']; $Message=$_POST['Message']; $align = $_POST['align']; $to = "$EmailTo"; $subject = "$Subject"; $body = "$Message\n\n\n$Site\nBy: $Name"; $headers = "From: $Email\n"; $worked = @mail($to,$subject,$body,$headers); if($worked) { ?> <p>Your message has been sent to the webmaster. You should recieve a reply shortly. </p> <p><a href="index.php" target="_self">Go Back To Index?</a></p> <? } else { ?> <p>Your message was unable to be sent</p> <p><a href="java script: go.history(-1);">Click here to go back</a></p> <? } } ?>
This is your exact script just made to work as one file instead of 3 seperate ones. You would name this mailform.php ( think that would work for albus' question since his site is php, my site is the same way)
Reply
Recent Queries:--
emailer in php - 12.57 hr back. (1)
-
how do i make the name and email come up in the from portion of a contact php form - 28.38 hr back. (1)
-
emailer for my website - 54.79 hr back. (2)
-
mailform.php pop3 - 83.36 hr back. (1)
-
php contact system - 105.23 hr back. (1)
-
detailed form ,mailform.php - 105.66 hr back. (1)
-
contact - 165.38 hr back. (1)
-
php emailer scripts - 175.10 hr back. (1)
-
mailer php code - 205.08 hr back. (1)
-
emailer samples - 206.69 hr back. (1)
-
fake mailer html php - 211.57 hr back. (1)
-
intext:php emailer - 261.49 hr back. (1)
-
*name: email: your site: * your message: allowed html tags: - 284.28 hr back. (1)
-
php emailer - 11.50 hr back. (9)
Similar Topics
Keywords : php, emailer, contact, system, email, contact, system, site
- Design A Contact Form In Flex Part 1
(0)
How To Make An Ultimate Game List.
If you're making a site on video games or such. (0) Hello. I am BuBBaG. You can call me Bubba for short. I'm going to show you how to make an
Ultimate Game List. First off, we need to make a database, we are going to call this database
`my_db`, leave out the `'s. Inside that database we will need to create a table
called `ugl'(Ultimate Game List, duh). To make the table, simply enter this in the Syntax.
CODE CREATE TABLE ugl ( System char(50), Game char(50), ) In the
above code, it is stating we are creating a table called ugl, with two columns, System, and Gam....
Verifying Your Email Address
A Simple PHP Tutorial. (0) Hi, everyone. I'm offering the next PHP tutorial that verifies an email address of an user who
wants to register on your site. This is how it works. When someone, went to registration page and
filled out all of the details such as Name, Password, email and so on and submit those details to a
server. The user is getting unique registration code to his or her email account, the one has to be
clicked to activate the account. 1. Outline: a) You need to create or build the following files:
-config.php (The configuration file) -signup.php (Initial Registration) ....
Simple Stylesheet Tutorial
Stylesheet embedded in your site. (2) Hi - ill show you how to make a simple style sheet that will be embedded into your site. OK make
sure your site is set up already (like the standard tags) To start and end off a stylesheet you
need to do the following CODE <style type="text/css"> </stlye> Ok
lets start CODE <style type="text/css"> p { font-family: "Tahoma";
font-size: 9; color: "red"; } </style> So when you come to put in
CODE <p>Hi!</p> The text will appear red and will be in Tahom....
How To Set Up A Bookmarking System On Wii
Use your favorite social bookmarking site. (0) This is a simple tutorial on a way to set up a bookmarking system on your Wii with greater stroage
than the Favorites. It is more complicated than the Favorites and requires manual URL typing. Well
let's dive on in. Items Required Nintendo Wii Internet Channel 3 Empty Favorites Internet
Connection An account on a social bookmarking site I will be using delicious as an example.
delicious Ok, if you do not have an account, read on. If you do have an account, go to the
{account} section. Ok, first you need to register an account. This can be done by clicki....
Create A Google Seach Result Page Embed Within Your Site Page.
(12) Create a google seach result page embed within your site page. It is easier to create
web page that embeded the google search result in it. The first step is to go to google apply an
account for the google ad-sense. After that login to you account and choose the create ad-seach
option. Most of time the google search box give all we have the great and powerfull seach ability.
But, have you think every time users get seach with it. They do redirected to another page that is
not within you site. It is easier to create web page that embeded the google sea....
Php Word Filter
Have you accidently sworn on your site? Or do you want to keep visitor (7) This is pretty simple but very useful if you don't want people to swear. We will be using
str_replace for this. CODE <?php str_replace ("curseword,
"replacemet"); ?> Thats pretty simple, just fill in the curse word and the
replacement, and then repeat... heres what it would look like full size: CODE <?php
str_replace("swear", "replacement"); str_replace("swear",
"replacement"); str_replace("swear", "replacement");
str_replace("swear", "....
Encode Your Email Address
Confuse the Spam Bots, but not your viewing clients (5) Spam bots often 'scrape' pages to glean information and collect email addresses. I don't
like that. To combat the Bots from collecting my address off of my site, I wrote a script that
includes 'obscures' the address in several ways. It adds 'AT' where the '@'
sign is and then replaces the '.' with 'DOT' so it is humanly readable, but not by
the Bots. Also, it encodes the 'mailto' and the address used in the 'mailto' so it
shows okay on the web page and on:hover, but it is actually encode into hex value....
Faux Ajax Loading - Css Only
Pretend your site is Ajax based (3) Link: http://www.jlhaslip.trap17.com/samples/misc/ajax/index.html Check that out. The first page
has information and the second and has the actual example of its use with sample CSS code. I find
that when you visit a site which has a slow server and attempt to view 'large' Image files,
it is pretty boring to sit and stare at a blank screen, so this little snippet of code can be used
to give the visitor something to see to indicate that the image is being downloaded. I built a
small animated gif that sits in the background of the space allocated for the image....
Wordpress Contact Form That Work With Free Web Hosts
(1) Hi there, I had a bit of trouble setting up the wp-contact-form plugin for my wordpress blog that
was hosted by freehostia. At first I was using the free package, so I couldn't send out any
mail. I solved that by saving all messages to a directory, and password protecting it. When I
updated to a payed package, I still couldn't send out any mail. It turned out that the From
header had to be an existing email that I had registered with my freehostia account, and
wp-contact-form used "From: " I solved that by modifying the plugin, changing From to the
administrat....
Making The Popular Id Browsing For Your Site.
(17) Was just sitting and being bored but then I realized I could show how to create more or less popular
?id=page browsing. It's actually really easy. I know two ways how to do it. First one I learned
was checking the variable and if it's true including the text/file/anything needed and so on. It
was ok, but sometimes I just couldn't make it work so I switched to switch() function and
that's what I'm going to show you guys right now. So, I made a test page which contains the
code needed and here is its source. CODE <!DOCTYPE HTML PUBLIC ....
Cpanel Useful Site Management Tools 2.1
Part 3 of My 7 Part Tutorial (0) This Tutorial will be divided into 7 different parts, and this is the first part, when i get the
other parts together, i will post the links under here /biggrin.gif" style="vertical-align:middle"
emoid=":D" border="0" alt="biggrin.gif" /> Enjoy. Part 1: E-mail Management Part 2: Useful Site
Management Tools Part 4: Analysis/Log Files Part 5: Advanced Tools Part 6: PreInstalled
Scripts, Extras, and Cpanel Options Part 7: Fantastico Detailed Cpanel Tutorial Part 2.1:
Useful Site Management Tools In this tutorial I will, in detail explain all of th....
Cpanel Useful Site Management Tools
Part 2 of My 7 Part Tutorial (0) This Tutorial will be divided into 7 different parts, and this is the first part, when i get the
other parts together, i will post the links under here /biggrin.gif" style="vertical-align:middle"
emoid=":D" border="0" alt="biggrin.gif" /> Enjoy. Part 1: E-mail Management Part 3: Useful Site
Management Tools2.1 Part 4: Analysis/Log Files Part 5: Advanced Tools Part 6: PreInstalled
Scripts, Extras, and Cpanel Options Part 7: Fantastico Detailed Cpanel Tutorial Part 2:
Useful Site Management Tools In this tutorial I will, in detail explain all of t....
A Full Error Protected Php Contact Form
(3) Well hello there yound lads. This is my first tutorial ever. If you would like to see the finished
product for yourself please go to http://www.webtodesign.net/contact/ Anyways here we go!
Step 1. Make a file called index.php . This is where the form is going to be. Copy and paste this
code in: CODE <?php session_start(); ?> <!--Start error code-->
<?php if ($_SESSION['error_msg']) { foreach
($_SESSION['error_msg'] as $val) { echo "$val<br
/>....
Templating System Using Php Includes
Building a Dynamic site using Includes and flat-files. (13) Php based Templating System http://jlhaslip.trap17.com/template/index.php The Source Code
for the scripts are included (literally) on the different pages on the Demo, including the Contact /
Email script. The only page not there yet is the Message Script. Maybe tonight I will upload that.
This one uses a little bit of query-string checking to confirm that the contents of the page are
actually available (file_exists())and an allowed page content before serving it up. The
'allowed page content' is done by checking against a flat-file containing an array....
Sending + Receiving Email Via Telnet
using email via the command line. (10) 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 ....
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 &....
Php Spy Code
Spy on your site! (21) Code Spy Code Description Anyone who comes to ur forum's IP Adress, Site they came From,
Their Browser and the time they came will get saved in a place that only the admin knows the
location of... V.2 More features coming up in V.2!!! POst suggestions/problems...
Preview:- http://s15.invisionfree.com/Spy/index.php ? REFRESH THE PAGE, AND GO HERE:-
http://h1.ripway.com/programming/spy%20code/spy.html ^^^^^^^That shows all the IP's, Browsers,
Time, site and stuff....^^^^^^^^ Code First of all, you'll need to host the files.... I sugg....
How To: Make A Simple Php Site
Making one file show up on all pages using php (21) I have looked all over the site and could not find anything that was like this simple, or just like
this at all.. For some people i know that you are using a basic HTML site...and having a big menu
if you want to add somthing you have to go into every one of the pages and add or remove or edit
what you want to do, but with somthing verry simple all you would have to do is edit one file, and
all of the pages that have the PHP script on them would suddenly change to what that one file is.
So to start off if you are planning on using this little tirck, the page that you a....
Not To Be Banned By Google
Take care that your site is not banned (2) /sad.gif' border='0' style='vertical-align:middle' alt='sad.gif' /> Strategic search engine
optimization involves far more than keyword research, META tags and content. If you want to mange an
SEO program, you need to be aware of any issue that can affect your success. Domain name management
is one of the big factors. Effective domain name management is critical because you could end up
getting banned from Google and other search engines if you take the wrong approach. Why would
Google ban you? In the spirit of fair play and providing depth in its results, Google ....
Verifying Email Addresses
Using a simple PHP script (9) 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....
Phpbb Forum Site Transfer
How to do it, step by step instructions (20) I'm sure many of you out there have used phpBB at some point. To those who enjoy running forums
and online communities, specifically supporting phpBB, I am about to tell everyone how to restore
the forums database from one website, to another. This is presuming you do not have any mods or
hacks installed. Some of you may find this information useful. Here is the scenario: Let's say
you have forums running phpBB version 2.0.17 (currently the latest one). You have decided that you
want to move your forums to a whole new URL and provider, and as an added bonus, ch....
Css And Javascript Combined For Dynamic Layout
use of different CSS files at same site (9) This tutorial is meant for people that are dealing with problems while coding their site at 100% of
width. Important notice: Some people has JavaScript disabled, so they will not be able to load CSS
file (take this in account when creating your website). How this script works. In the HEAD of your
HTML document will apply this command, so variable.js file will be load at start: CODE
<script type="text/javascript" src="variable.js"></script> In
browser JavaScript file variable.js is loaded. This Javascript file consist of this para....
How To Make A Very Simple Wap Site
A quick tutorial about WML language (40) WAP Site Tutorial : How to Make A Wap site? Before We begin.. Defination from the
Web about Wap. QUOTE WAP is an open international standard for applications that use
wireless communication . Its principal application is to enable access to the Internet from a
mobile phone or PDA .A WAP browser provides all of the basic services of a computer based web
browser but simplified to operate within the restrictions of a mobile phone. WAP is now the
protocol used for the majority of the world's mobile internet sites, known as WAP sites ....
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.....
Checking The Web Site Speed
(10) Did you taking too much time to access your favorite sites? Probably the problem is on the server
used by those sites. To make sure that is the problem, use Windows PING facility. Ping is a small
program, which sends a 32-bit signal to the Web site server. Next, Ping record the time needed by
the server to answer it. To activate Ping: Click on the Start-Run menus, type command, and then
click OK. Type PING "site name" in the MS-DOS prompt window, for example PING www.yahoo.com. In a
moment, the result will appear on the screen. A result less than 300ms is normal spee....
Email Script/form With Php
how to make a simple email script using php (35) Today, I'm going to show you how to make an email script using PHP and HTML. Most people usually
put Email me 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 yo....
How To Put A Phpbb Login Box On Your Main Site.
Code and .php included!!! (18) I have included my coded file with this... Ok here is the code. CODE // //Create login area,
replace the phpBB2 in /phpBB2/login.php with your forum's //directory // <form
action="/phpBB2/login.php" method="post" target="_top"> <table
width="25%" cellspacing="2" cellpadding="2" border="0"
align="center"> <tr> <td align="left"
class="nav"><a href="/phpBB2/index.php" class="nav">Prank Place
Forum Index</a></td>....
HTML tags and examples
Condensed form of course from my site... (37) Well, I decided to try and help out some of the users here who might be unexperienced in HTML, so I
condensed the begginer's HTML course at my website. Here it is... Lesson 1 HTML means Hyper
Text Markup Language. HTML is a very common language used for many websites, is the base for more
complicated and powerful langauges like php, HTML can seem hard, but you will find it is one of the
easiest langauges one can learn. The core of HTML is the tag, a tage is just a set of two
arrows-like brackets created by hitting Shift and the comma key, or Shift and the period....
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 "....
Looking for php, emailer, contact, system, email, contact, system, site
|
*RANDOM STUFF*
*SIMILAR VIDEOS*
Searching Video's for php, emailer, contact, system, email, contact, system, site
*MORE FROM TRAP17.COM*
|
advertisement
|
|