0

Here is the code I have in contact.php:

<?php
    mail('philovesdogs@gmail.com','sdf','sadfsad');
    echo 'Ok';
?>

I put the echo in just to make sure that PHP was working on the page. I uploaded the page to my LAMP server and opened the page. I saw 'ok'. I checked my email however (and my Spam folder) and no email was sent. Any suggestions? Thanks!

3
Contributors
3
Replies
6
Views
4 Years
Discussion Span
Last Post by PhilEaton
0

Does your lamp server have have sendmail installed and running? Do you have any other mail scripts on your lamp server that do work?

It's possible your server has been blocked for spam reasons.

0

No, I don't have a mail server running! I've been scanning the internet to try to find out how to get it up, but everything I've tried isn't working! How do I configure sendmail?

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.