Dynadot Aftermarket: discover domain gems worth investing in. Visit our aftermarket.

Free Email Script

Namecheap AuctionsNamecheap Auctions
Spacemail by SpaceshipSpacemail by Spaceship
SpaceshipSpaceship
Watch

cascadingstylez

Account Closed
Impact
6
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 = '[email protected]';
  # 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);}

  ?>
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
good script. Thanks for sharing. What would be needed to get this to become a mass email script?
 
0
Close
0
Close
teclance said:
Hey,

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

http://www.tigerdirect.com/applications/SearchTools/item-details.asp?EdpNo=3163194&sku=H24-RT901 SB


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:
<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 = '[email protected]';
  # 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 
 ([email protected]) 
 
 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:
0
Close
thanks for sharing
 
0
Close
DomainEasy: flexible LTO options. Close more domain deals with financing.

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back