LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Is it my PHP command or a server issue with mail? (https://www.linuxquestions.org/questions/linux-newbie-8/is-it-my-php-command-or-a-server-issue-with-mail-597737/)

DeeH 11-07-2007 05:12 AM

Is it my PHP command or a server issue with mail?
 
I have the following piece of PHP code.

PHP Code:

<?
mail
('first.last@company.com','TESTmail','this is a test');
?>

The mail doesn't go anywhere. The person I am sending the mail to receives nothing. As far as I know my syntax is correct. I suspect it is an issue between the Linux server where the php code is run and the mail(outlook/exchange) server, but I don't even know where to start looking. There have been a lot of IP and DNS changes recently and I really suspect that that is the underlying issue, but I can't find it anywhere on the linux server.
Any ideas, or am I on the wrong track?
Thanks,
D

juergen 11-07-2007 02:44 PM

Does
Code:

echo 'this is a test'|mail first.last@company.com
(from the command line) get the mail to where you want it to go?
If not, it's the server or the recipient.


All times are GMT -5. The time now is 04:34 PM.