LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-01-2009, 05:13 PM   #1
steve51184
Member
 
Registered: Dec 2006
Posts: 381

Rep: Reputation: 30
server not sending email (php not working sendmail is)


hi there i have a ubuntu 8.10 server with the usual apache2/php5/mysql setup and the server is mainly used to host an smf forum but it's recently stop sending emails out using php's mail function and ALL mail that uses this (99% of scripts use this) can't send mail yet the server CAN send email via sendmail if i do something like:

Quote:
echo hello |sendmail -v email@address.com
so what's the problem and is there a way to test to see if it is working?

thanks
 
Old 11-01-2009, 05:26 PM   #2
sleddog
Member
 
Registered: Jan 2002
Location: Labrador, Canada
Distribution: CentOS, Debian
Posts: 182

Rep: Reputation: 35
I believe that PHP's mail() function invokes sendmail, so you can check your server's mail log to see why a message fails.

You might also check the Apache access log and error log to see if the problem actually lies with the PHP script.
 
Old 11-01-2009, 06:29 PM   #3
steve51184
Member
 
Registered: Dec 2006
Posts: 381

Original Poster
Rep: Reputation: 30
problem is fixed


my server is getting it's emails marked as spam
 
Old 11-01-2009, 11:56 PM   #4
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

You might want to mark this post as "solved" (the problem had nothing to do with PHP per se, but with your e-mail relay).

Q: How is your other problem going:
http://www.linuxquestions.org/questi...3/#post3739311

Please, too, look at this link:
http://www.linuxquestions.org/questi...rwards-765855/

Last edited by paulsm4; 11-01-2009 at 11:58 PM.
 
  


Reply



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
Sendmail - not sending email to outside. Blash Linux - Networking 2 05-03-2007 05:09 AM
sendmail not sending or receiving email kaplan71 Linux - Software 1 12-20-2005 08:26 AM
sending email from a script without sendmail tangle Linux - Networking 1 12-06-2005 01:32 AM
Sending email to a smtp address through sendmail guilmetrp Linux - General 0 02-27-2004 08:02 PM
Automatic email sending with sendmail? Stingreen Linux - General 10 04-15-2002 02:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:16 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
Open Source Consulting | Domain Registration