[advanced search]
Results from the most recent live auction are here.
32 members in the live chat room. Join Chat!
Register Rules & FAQ NP$ Store Active Threads Mark Forums Read
Go Back   NamePros.Com > Design and Development > Programming > CODE
User Name
Password

Old 04-16-2007, 12:26 AM   · #1
cascadingstylez
Account Closed
 
Location: United Kindom
Trader Rating: (2)
Join Date: Apr 2007
Posts: 201
NP$: 0.00 (Donate)
cascadingstylez is on a distinguished road
Adoption
Free Email Script

I have write a simple Copy and Paste script for other members to use on there websites. Its a basic contact form script. It has no styling, ive just created it simple and basic, but if you need it styled/changed id be willing to do so for a small $fee.

There are many ways to send mail, this is just one of them and works well. Copy and paste, upload to your web server and test it out.

Enjoy

Code:
<form method="post" action="<?php echo($PHP_SELF) ?>"> <fieldset> <legend>Email Form</legend> <p><label>Name:</label><input type="text" name="name" id="name"></p> <p><label>Email:</label><input type="text" name="email" id="email"></p> <p><label>Comments:</label><input type="text" name="comments" id="comments"></p> <p><input type="submit" name="submit" id="submit" value="Send Message"></p> </fieldset> </form> <?php # Add your email address $to = 'yourname@googlemail.com'; # Add a default subject $subject = 'You Have Mail From Your Website'; $name = $_REQUEST['name']; $email = $_REQUEST['email']; $comments = $_REQUEST['comments']; $submit = $_REQUEST['submit']; $body = "$name $email $comments"; if(isset($submit)) { mail($to, $subject, $body);} ?>


Please register or log-in into NamePros to hide ads
cascadingstylez is offline   Reply With Quote
Old 04-16-2007, 08:57 AM   · #2
paaaaaaaaaa
NamePros Regular
 
Trader Rating: (17)
Join Date: Mar 2005
Posts: 411
NP$: 150.00 (Donate)
paaaaaaaaaa is a jewel in the roughpaaaaaaaaaa is a jewel in the roughpaaaaaaaaaa is a jewel in the rough
good script. Thanks for sharing. What would be needed to get this to become a mass email script?
__________________
Ripe Website Manager Project
paaaaaaaaaa is offline   Reply With Quote
Old 07-19-2007, 12:23 AM   · #3
teclance
NamePros Regular
 
Trader Rating: (8)
Join Date: Feb 2004
Posts: 622
NP$: 57.15 (Donate)
teclance is on a distinguished road
Hey,

I need a page feed back script for oscommerce. An example can be seen at tigerdirect near the bottom:

http://www.tigerdirect.com/applicat...=H24-RT901%20SB


I need the email it sends to included the link to the page that there at.

Please note the oscommerce script is php incase your unsure.

How much to do this?

thanks.
__________________
Sincerely
Mike Kelly
teclance is online now   Reply With Quote
Old 07-20-2007, 11:07 AM   · #4
Daniel
Danltn.com
 
Daniel's Avatar
 
Name: Daniel Neville
Location: Danltn.com / Nottingham, UK
Trader Rating: (65)
Join Date: May 2007
Posts: 1,185
NP$: 681.56 (Donate)
Daniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond repute
Ethan Allen Fund Ethan Allen Fund
Originally Posted by teclance
Hey,

I need a page feed back script for oscommerce. An example can be seen at tigerdirect near the bottom:

http://www.tigerdirect.com/applicat...=H24-RT901%20SB


I need the email it sends to included the link to the page that there at.

Please note the oscommerce script is php incase your unsure.

How much to do this?

thanks.



PHP Code:
<form method="post" action="<?php echo($PHP_SELF) ?>">
<
fieldset>
<
legend>Email Form</legend>
<
p><label>Name:</label><input type="text" name="name" id="name"></p>
<
p><label>Email:</label><input type="text" name="email" id="email"></p>
<
p><label>Comments:</label><input type="text" name="comments"  id="comments"></p>
<
p><input type="submit" name="submit" id="submit" value="Send Message"></p>
</
fieldset>
</
form>

<?
php
  
  
# Add your email address
  
$to = 'daniel@neville.tk';
  
# Add a default subject
  
$subject = 'You Have Mail From Your Website';
  
$loc = $_SERVER['PHP_SELF'];
  
$name = $_REQUEST['name'];
  
$email = $_REQUEST['email'];
  
$comments = $_REQUEST['comments'];
  
$submit = $_REQUEST['submit'];
  
$body = "You have received an email from $name \n ($email) \n \n $name wanted to tell you: $comments \n \n He sent this message from $loc";

  if(isset(
$submit)) {

  
mail($to, $subject, $body);}

  
?>


Example email

Code:
You have received an email from Daniel Neville (daniel@neville.tk) Daniel Neville wanted to tell you: I really like this product! He sent this message from /email.php


If you require it says the whole URL e.g. http://domain.com/file.php then please reply back!

Last edited by Danltn : 07-20-2007 at 11:14 AM.
Daniel is offline   Reply With Quote
Closed Thread

NamePros is a revenue sharing forum.

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


Site Sponsors
Special Offer http://www.mobisitetrader.com/ http://www.mobisitetrader.com/
Advertise your business at NamePros
All times are GMT -7. The time now is 01:12 PM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0