Sending Form to Mail

Status
Not open for further replies.

Ryuji666

New Member
Messages
20
Reaction score
0
Points
0
Im currently interested in creating a application form on my site although i want to make it secure.. my issue is i dont really know what i need to do it... im assuming ill need to touch up on some .php server side scripting to do this? also im interested in how to get a mail service that send the mail directly without the user having Windows Mail pop up for installation (which is what happened to me when i tested it) i know ill need the v2 upgrade for PHP im sure.. but thats less of a concern to me right now rather than actually learning how to do it first...
 

Ryuji666

New Member
Messages
20
Reaction score
0
Points
0
yes i use w3schools thanx anyways though i think i may go with some kinda auto php coder thing... who knows..
 

sunils

New Member
Messages
2,266
Reaction score
0
Points
0
You can learn a bit of php from w3schools for creating the form and then getting the data in the server side using a php script..

then you can use the below simple php script to send that data to the desired mail address.

<?php
$to = "recipient@example.com";
$subject = "Hi!";
$body = "Hi,\n\nHow are you?";
if (mail($to, $subject, $body)) {
echo("<p>Message successfully sent!</p>");
} else {
echo("<p>Message delivery failed...</p>");
}
?>
 

Ryuji666

New Member
Messages
20
Reaction score
0
Points
0
how do i close this thread... it seems i dont have control over that? i keep searching for a close but cant find it anywhere lol
 

DeadBattery

Community Support Team
Community Support
Messages
4,018
Reaction score
120
Points
0
If registered users have the privilege to close their own threads in a forum, you'd be able to close it through clicking Thread Tools above the first post in the thread.
I can close it for you though. :)
Thread Closed
 
Status
Not open for further replies.
Top