
September 23rd, 2004, 09:35 PM
|
|
Registered User
|
|
Join Date: Sep 2004
Posts: 2
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Issues Sending Mail using php
ok here is my thing... I made a PHP script that when access Cron/manually I want it to send a email to the designated email. The Script I used was
Code:
<?php
//start reusable script
$emails = "DESIGNATED@EMAIL.com";
$subject = "This Weeks Allowance";
$body = "Hey dad\n Can You please give me Today\'s allowance when you have a chance?";
$from = "From: Whatever@haha.com";
$subject = addslashes($subject);
$body = addslashes($body);
mail($emails, $subject, $body, $from);
?>
problem is when accessed it doesnt send the email, and I tried it on someone elses server and it sent, which brings me to the conclusion that there is something wrong with my mail server. I have created a PHPinfo document for you guys to see if you can see anything wrong with it.
http://209.67.210.213/~sonsofaz/someone.php
Any help is appreciated
-Slybone
P.S. If I go to sonsofazeroth.net/webmail I can send mail out of there, just not the way im trying to do currently.
|