bhben Posted February 19, 2007 Share Posted February 19, 2007 I am a complete beginner with php, and i'm trying to send information from a form to my hotmail email address. Please see the attached html file with my form. On selecting submit the file "formresult.php" is opened and it is here I am not sure what to include. I have tried a few things but to no avail. I wish for an email message to be sent and for this new page to display the information. So far i have been unable to do both. I would like to add I am doing all of this on my own machine and so no contact is made with a server (although this is the final goal i need it working like this first). So my formresult.php file should send the email out and display the information added to the form. Please help. Ben. [attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/39135-solved-forms-to-send-emails/ Share on other sites More sharing options...
The_Assistant Posted February 19, 2007 Share Posted February 19, 2007 just use the mail function: http://au2.php.net/manual/en/function.mail.php. so try: mail("[email protected]", $subject, $message, "From: ".$from_email); Link to comment https://forums.phpfreaks.com/topic/39135-solved-forms-to-send-emails/#findComment-188490 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.