Search the Community
Showing results for tags 'emailFunction'.
-
Im having a problem with respect to sending out emails using XAMPP as my local server. After some resarches and videos... I found out that the mail function doesn't work automatically with local web Servers such as (xampp, wampp. ampps .... and all other kind of "amppss out there!"). I know that in order to the function work properly i have to reformat some php.ini and sandmail.ini files in the root of my server. My question is : Is there any other way of doing this ? i mean using the mail() function with my local server ON ? Do i really have to buy a server in order to use this ? oh! there's also this guy on youtube that discovered a tool called "Test mail server tool". here's the link if you're interested: http://www.toolheap.com/test-mail-server-tool/ What basically this tool allows us to do is: it will catch any email that are sent from the mail function and display them in a textEditor. And that would be fine for me since i just want to test. But that tool doesn't work for windows 8.1 -.- So im getting a little bit frustaded over this Any advice on what i should do ? Thank you Maybe the problem is in my code ? <?php $to = 'example1@example.com';$subject = 'this is the subject';$header =' from: $email';$name = $_POST['name'];$email = $_POST['email'];$message = $_POST['message']; $body = <<<EMAIL Person name: $name Person Email: $email $message From: $name EMAIL;if($_POST){ if($name ==''|| $email=='' || $message==''){ $feedback='feed back message'; }else{ mail($to, $subject, $body, $header); $feedback = ' feedback message'; } } ?>
- 2 replies
-
- emailFunction
- contact form
-
(and 1 more)
Tagged with: