| | |||||
| ||||||||
| CODE This forum is for posting code snippets and example scripts that aren't quite tutorials, but could be useful for others. You may post code snippets and/or completed scripts that you've written and want to share here. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| Account Suspended Join Date: Apr 2007 Location: United Kindom
Posts: 201
![]() | 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. ????: NamePros.com http://www.namepros.com/code/317218-free-email-script.html 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);}
?> |
| |
| | #2 (permalink) |
| NamePros Regular Join Date: Mar 2005
Posts: 442
![]() ![]() ![]() | good script. Thanks for sharing. What would be needed to get this to become a mass email script?
__________________ Please add to my rep points if i was helpful. Thanks. Content management system and online shop software |
| |
| | #3 (permalink) |
| NamePros Regular Join Date: Feb 2004
Posts: 651
![]() | Hey, I need a page feed back script for oscommerce. An example can be seen at tigerdirect near the bottom: http://www.tigerdirect.com/applicati...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 |
| |
| | #4 (permalink) | ||||
| Danltn.com Join Date: May 2007 Location: Danltn.com / Nottingham, UK
Posts: 1,201
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
PHP Code: 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
__________________
Last edited by Danltn; 07-20-2007 at 11:14 AM.
| ||||
| |