Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 11-14-2003, 05:25 AM   #1
LQ Newbie
Registered: Jun 2001
Posts: 12

Rep: Reputation: 0
Trouble sending mails with php


I'm using code that needs to send a mail, I tryed using mail, but It just won't send mail, but the return code returns TRUE.

I installed RH9, and sendmail is installed too, in my php.ini, I have this line

sendmail_path = /usr/sbin/sendmail -t -i

I checked the path, and sendmail is in there

I used this

$ret=mail("", "My Subject", "Line 1\nLine 2\nLine 3");

$ret should return error in case of failure but returns TRUE, but it's not sending mail anyway.
Old 11-15-2003, 02:44 AM   #2
Registered: Jul 2003
Distribution: Red Hat, Fedora, Debian
Posts: 85

Rep: Reputation: 15
i think, mail is sent but not delivered to destination successfully because of some configuration prob
check maillog messages for trouble-shooting (generally in /var/log/ directory)
u will definitely get some thing there
Old 11-17-2003, 06:06 AM   #3
LQ Newbie
Registered: Jun 2001
Posts: 12

Original Poster
Rep: Reputation: 0
Well, you were right this is one line that saw in the logfile
I tried other addresses and it's still the same

Nov 17 10:55:20 Obelix sendmail[21746]: hAHAtKhe021746:, delay=00:00:00, mailer=esmtp, pri=30045, dsn=4.4.3, stat=queued

Old 12-15-2003, 11:41 PM   #4
Registered: Nov 2003
Distribution: RH, Fedora, Debian, Knoppix
Posts: 436

Rep: Reputation: 31
Could you give us more of your logfile?

The message is accepted, queued, but then...?


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
Sending e-mails via a C++ program The_Nerd Programming 6 12-05-2004 10:56 PM
Sending mails using port 25 rabeea Linux - Security 10 08-17-2004 12:53 AM
qmail not sending mails spank Linux - Software 0 05-21-2004 01:08 PM
Sending mails with eXtremail Ivanhoe Linux - Networking 2 12-31-2002 10:34 AM
sendmail sending fake e-mails klaus geld Linux - Security 4 07-18-2001 09:45 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:53 PM.

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