LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

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

Rep: Reputation: 0
Trouble sending mails with php


Hello,

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("wamaral@ipatimup.pt", "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, 01:44 AM   #2
sashhoney
Member
 
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, 05:06 AM   #3
Wagner
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: to=wamaral@ipatimup.pt, delay=00:00:00, mailer=esmtp, pri=30045, dsn=4.4.3, stat=queued

Thanks
 
Old 12-15-2003, 10:41 PM   #4
ugob
Member
 
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...?
 
  


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


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration