LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-07-2007, 06:12 AM   #1
DeeH
LQ Newbie
 
Registered: Oct 2007
Posts: 2

Rep: Reputation: 0
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
 
Old 11-07-2007, 03:44 PM   #2
juergen
Member
 
Registered: Sep 2001
Posts: 40

Rep: Reputation: 16
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mail command issue ...!!! balavignesh Linux - Newbie 2 12-27-2005 09:19 AM
mail server issue smtps/pop3s ...HELP!!! rnj Fedora 0 10-08-2004 03:39 AM
php: different mail server from php.ini rayds Programming 0 09-14-2004 04:48 AM
Cannot send mail with mail() command in PHP 4.3.4, Apache 2.0.48, Mandrake Linux 10 arcanum Linux - General 3 06-27-2004 07:06 PM
Mail Server Issue WXMistress Linux - Newbie 4 07-09-2003 08:20 PM


All times are GMT -5. The time now is 11:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration