Chomauk
Programmer
- Jun 8, 2001
- 130
I tried and tried and found a ton of worthless help involving how to set my php.ini file, however, I'm using a web host and cannot change the ini file...can I?
I'm trying to send an email...here's the code:
I then get "Message sent" but NO mail is delivered. In phpinfo.php my sendmail_path is /usr/sbin/sendmail -t -i and sendmail_from is no value and as far as I know I don't have to change them but of course I could be wrong.
Some of the info I found is pretty straight forward(like above) but doesn't work and others are so convoluted I've given up trying to understand them.
My web host is Apache Web Server if that is even pertinent.
Please help!
"Failure is the tuition you pay for success."
~ Walter Brunell ~
I'm trying to send an email...here's the code:
Code:
<html>
<head><title>PHP Mail Sender</title></head>
<body>
<?php
$to = "me@email.com";
$subject = "TEST!";
$body = "If I ever get this \n\n I'll be one happy guy!";
if (mail($to, $subject, $body))
{
echo("<p>Message sent!</p>");
}
else
{
echo("<p>Message delivery failed...</p>");
}
?>
</body>
</html>
I then get "Message sent" but NO mail is delivered. In phpinfo.php my sendmail_path is /usr/sbin/sendmail -t -i and sendmail_from is no value and as far as I know I don't have to change them but of course I could be wrong.
Some of the info I found is pretty straight forward(like above) but doesn't work and others are so convoluted I've given up trying to understand them.
My web host is Apache Web Server if that is even pertinent.
Please help!
"Failure is the tuition you pay for success."
~ Walter Brunell ~