October 13, 2008, 07:06:45 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Please support SEO4smf further development donating here or use paypal button from left menu.
 
  Home   Forum   Help Search Directory Calendar Login Register    RSS 2.0 feedAtom feed


News
Please support SEO4smf further development donating here or use paypal button from left menu.
Pages: [1]
  Print  
Author Topic:

Mail form

 (Read 781 times)
0 Members and 1 Guest are viewing this topic.
spiderx
Jr. Member
**

Points: 3
Offline Offline

Posts: 62



« on: June 27, 2006, 21:45:15 »

I made a simple form for a feedback page. I want to know how to send email from php. The most easy way Smiley

Thanks
Logged

Regards
Spider X


Harro
Full Member
***

Points: 2
Offline Offline

Posts: 184



« Reply #1 on: June 28, 2006, 03:03:15 »

Here you go: http://www.w3schools.com/php/php_mail.asp
There's a full mail form there.
But it's basic enough to understand everything Smiley
Logged

TheGodFather
Administrator
Hero Member
*****

Points: 202
Offline Offline

Posts: 2570



WWW
« Reply #2 on: June 28, 2006, 10:07:55 »

Or try this code

Code:
$email = $HTTP_POST_VARS['email'];
    $mailto = "you@mydomain.com";
    $mailsubj = "Feedback from".$email;
    $mailhead = "From: $email\n";
    reset ($HTTP_POST_VARS);
    $mailbody = "All the value from post submitted from web site form:\n";
    while (list ($key, $val) = each ($HTTP_POST_VARS))
    {
        $mailbody .= "$key : $val\n";
    }
    mail($mailto, $mailsubj, $mailbody, $mailhead);


If is to more complex we can help you

Regards
Logged

spiderx
Jr. Member
**

Points: 3
Offline Offline

Posts: 62



« Reply #3 on: June 29, 2006, 00:30:15 »

Thanks. I alresady solved the problem now I have other problem Smiley

http://www.webmasterstalks.com/index.php/topic,249.0.html

Bye
« Last Edit: July 21, 2006, 15:49:23 by TheGodFather » Logged

Regards
Spider X
Camron
Jr. Member
**

Points: 0
Offline Offline

Posts: 6


« Reply #4 on: July 15, 2006, 04:47:33 »

Thanks for the tut, works relaly nice and smoothly!
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.4 | SMF © 2006, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks

TinyPortal v0.9.7 © Bloc
Valid XHTML 1.0! Valid CSS!