|
I have been trying to use the php mail() function to send details from an HTML form. Trouble is that it just wont work! It says it is working and is sending the mail, but I have never recieved any mail! Tried it with several email accounts and a couple of web hosting accounts. Any ideas?
PHP Mail() function problem?
It's probably a PHP configuration problem. You'll need to contact the web host to ensure you can send SMTP mail from their server using PHP.
Additionally, you don't specific the code you're using but you may want to try adding header information if you're using a Windows server.
PHP mail function: http://us2.php.net/manual/en/ref.mail.ph...
PHP Mail() function problem?
And you don't provide us your code?
<?php
// The message
$message = "Line 1\nLine 2\nLine 3";
// Send
mail('email@domain.com', 'My Subject', $message);
?>
Would something like that fo ryou work?
|