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! 
Comment/Reply (w/o sign-up)
Dooga
Mar 8 2005, 12:56 AM
Couldn't we also use the CGI bin? That would seem easier for me
Comment/Reply (w/o sign-up)
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?
Comment/Reply (w/o sign-up)
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?
Comment/Reply (w/o sign-up)
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.
Comment/Reply (w/o sign-up)
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.
Comment/Reply (w/o sign-up)
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...
Comment/Reply (w/o sign-up)
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!
Comment/Reply (w/o sign-up)
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.
Comment/Reply (w/o sign-up)
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!
Comment/Reply (w/o sign-up)
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.
Comment/Reply (w/o sign-up)
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?
Comment/Reply (w/o sign-up)
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
Comment/Reply (w/o sign-up)
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
Comment/Reply (w/o sign-up)
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)
Comment/Reply (w/o sign-up)
Similar Topics
Keywords : php, emailer, contact, system, email, contact, system, site
- How To Design A Contact Form In Flex Part Duex Part 2
(0)
How To Design A Contact Form In Flex Part Duex Part 1
(1) How to Design a Contact Form in Flex Part Duex Part 1 Well if you had read my first three
tutorials on how to design a contact form, you learn some basics on MXML and of course design a
contact form. Yeah I promise a part 4 to that series, that is why I renamed this one to Part Duex,
since the form is completely different, and using a different way to populate my combo boxes with
data. Although, I might have found something to get the php going for this, but I save that for
another time. Now because I am using the flex editor to design my contact form, I will be re....
Design A Contact Form In Flex Part 3
(4) Design A Contact Form In Flex Part 3 Hopefully you have able to get a grasp on my first tutorials
on how to design a flex form and then be able to stylize it with CSS. So now on to set up your form
to validate and of course being able to reset your form as well., and before we get to the actual
coding I break down the tags that will be used in this tutorial and what their roles are. Of course,
since my newbieness really starts here I try my best to explain these tags. The first tag I will
cover for setting up the validation is the tag, and since I don't underst....
[aef] Most Recent Topics Listing Mod
on your Web-site pages (2) Assuming that you have an AEF Forum software installed on your Hosting Account, and that you need
to display a list of the most Recent Topics to be display, say, on your Index page, then read this
Tutorial. To begin, Define the variables that you need to connect to the Database and also define
the URL to the Forum in the prescribed format as follows: CODE //define db information here
DEFINE ('DB_USER', ' '); // required info DEFINE ('DB_PASSWORD',
' '); // required info DEFINE ('DB_HOST', 'localhost'); // required....
Design A Contact Form In Flex Part 2
(0) Design A Contact Form In Flex Part 2 I hope that you learn a little bit of the Flex format with my
first tutorial because that was the easy stuff until you get to the actual programming such as
ActionScript and any other languages. Of course, I think this is by far the easiest part of
designing forms or applications and that is using CSS. I will like to point out that CSS in Flex is
a enigma and I will tell you why, because CSS in flex acts like regular CSS in html however it is
very limited in what you can use and yet CSS in Flex is very complex because of how you ca....
Design A Contact Form In Flex Part 1
(0) Design a Flex Form Part 1 Well this is my first tutorial on Adobe Flex 3 which is a great program
if you’re interested in designing applications for the web 2.0 era. Adobe flex is the way to
go as it combines several different programming languages in order to make the most out of this
program. This includes HTML, CSS, XML, PHP/MySQL, XML, ActionScript, Ruby on Rails and ASP and this
is all possible by the use of MXML or Magic eXtensible Markup Language because it is a user
interface markup language. My three part tutorials for this form include designing the f....
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 Game. Next, we will need to make a form,
t....
Verifying Your Email Address
A Simple PHP Tutorial. (1) 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 Ok lets start CODE p { font-family: "Tahoma";
font-size: 9; color: "red"; } So when you come to put in CODE Hi! The text will
appear red and will be in Tahoma. I will now just show you how to change the background colour of
the text. CODE span.hilightred {background-color: "red";} span.hilightblue {backgrou....
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 (9) This is pretty simple but very useful if you don't want people to swear. We will be using
str_replace for this. CODE 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 str_replace("swear", "replacement"); str_replace("swear", "replacement");
str_replace("swear", "replacement"); str_replace("swear", "replacement"); ?> Ok, but how do you
get it to work on your page now? Well, save that file as wordfilter.php and use CODE ....
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 Untitled Home - P....
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....
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. (11) 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 a port i....
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....
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 //Load email
address from web form $email = $_POST ; Now, we move on to our first check. Does the text that
has been entered look like it could be an email address? This check can be performed....
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
In browser JavaScript file variable.js is loaded. This Javascript file consist of this parameters,
copy this code and name it variable.js CODE // JavaScript Document if (sc....
How To Make A Very Simple Wap Site
A quick tutorial about WML language (43) 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 ....
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 (36) 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 you are pre....
How To Put A Phpbb Login Box On Your Main Site.
Code and .php included!!! (19) 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 // Prank Place
Forum Index Please enter your username and password to log in.
Username: Password:
Log me on automatically each visit:
I forgot my password You can test this out on my....
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. (28) 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 $qid = "Quiz ID-00"; ?>
Username: 1.) Question number one is? Answer1 Answer2 2.) Question number two is?
Answer1 Answer2 3.) Question number three is? Answer1 Answer2 4.) Question num....
Looking for php, emailer, contact, system, email, contact, system, site
|
Searching Video's for php, emailer, contact, system, email, contact, system, site
See Also,
|
advertisement
|
|