473,320 Members | 1,694 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

debugging php mail

On Fedora, using php5. The mail() function returns a success - but the
mail itself is not actually sent.
How do I go about debugging this? Do I need to do this at the linux
command level to ensure mail is working? any logs i need to look at?

Oct 9 '07 #1
6 10751
On Oct 9, 3:27 pm, nextpulse <rob...@nextpulse.comwrote:
On Fedora, using php5. The mail() function returns a success - but the
mail itself is not actually sent.
How do I go about debugging this? Do I need to do this at the linux
command level to ensure mail is working? any logs i need to look at?
You could probably check the messages log file. Be sure that sendmail
is working, and that on the receiving end it is not being blocked. If
your linux host is not setup for the right MX, for mail it is sending
as, it is normal for receiving mail servers to discard, or at least
flag it as being spam. check your /var/spool/mqueue after verifying
that sendmail is operating, your mails should be listed there, if
sendmail is not working to relay the mail.

Oct 9 '07 #2
On Oct 9, 4:17 pm, dkruger <davidkru...@techie.comwrote:
On Oct 9, 3:27 pm, nextpulse <rob...@nextpulse.comwrote:
On Fedora, using php5. The mail() function returns a success - but the
mail itself is not actually sent.
How do I go about debugging this? Do I need to do this at the linux
command level to ensure mail is working? any logs i need to look at?

You could probably check the messages log file. Be sure that sendmail
is working, and that on the receiving end it is not being blocked. If
your linux host is not setup for the right MX, for mail it is sending
as, it is normal for receiving mail servers to discard, or at least
flag it as being spam. check your /var/spool/mqueue after verifying
that sendmail is operating, your mails should be listed there, if
sendmail is not working to relay the mail.
Also be sure that you have an SMTP and smtp port setup under [mail
function] in your php.ini file.

Oct 9 '07 #3
On Oct 9, 2:19 pm, dkruger <davidkru...@techie.comwrote:
On Oct 9, 4:17 pm, dkruger <davidkru...@techie.comwrote:
On Oct 9, 3:27 pm, nextpulse <rob...@nextpulse.comwrote:
On Fedora, using php5. The mail() function returns a success - but the
mail itself is not actually sent.
How do I go about debugging this? Do I need to do this at the linux
command level to ensure mail is working? any logs i need to look at?
You could probably check the messages log file. Be sure that sendmail
is working, and that on the receiving end it is not being blocked. If
your linux host is not setup for the right MX, for mail it is sending
as, it is normal for receiving mail servers to discard, or at least
flag it as being spam. check your /var/spool/mqueue after verifying
that sendmail is operating, your mails should be listed there, if
sendmail is not working to relay the mail.

Also be sure that you have an SMTP and smtp port setup under [mail
function] in your php.ini file.
Yep. They are all setup.
Essentially, this worked on another box (fedora 4 and php4). I am
porting it to a new box (php5) and it stopped working (with no code
changes). So I am debugging to try an locate the issue. Any help in
this area will be appreciated. Logs to look at etc.

Oct 9 '07 #4
On Oct 9, 3:08 pm, nextpulse <rob...@nextpulse.comwrote:
On Oct 9, 2:19 pm, dkruger <davidkru...@techie.comwrote:
On Oct 9, 4:17 pm, dkruger <davidkru...@techie.comwrote:
On Oct 9, 3:27 pm, nextpulse <rob...@nextpulse.comwrote:
On Fedora, using php5. The mail() function returns a success - but the
mail itself is not actually sent.
How do I go about debugging this? Do I need to do this at the linux
command level to ensure mail is working? any logs i need to look at?
You could probably check the messages log file. Be sure that sendmail
is working, and that on the receiving end it is not being blocked. If
your linux host is not setup for the right MX, for mail it is sending
as, it is normal for receiving mail servers to discard, or at least
flag it as being spam. check your /var/spool/mqueue after verifying
that sendmail is operating, your mails should be listed there, if
sendmail is not working to relay the mail.
Also be sure that you have an SMTP and smtp port setup under [mail
function] in your php.ini file.

Yep. They are all setup.
Essentially, this worked on another box (fedora 4 and php4). I am
porting it to a new box (php5) and it stopped working (with no code
changes). So I am debugging to try an locate the issue. Any help in
this area will be appreciated. Logs to look at etc.
Did more debugging on this. The issue was a combination of MX and the
use of \n in headers!!!

Oct 9 '07 #5
On Oct 9, 3:08 pm, nextpulse <rob...@nextpulse.comwrote:
On Oct 9, 2:19 pm, dkruger <davidkru...@techie.comwrote:
On Oct 9, 4:17 pm, dkruger <davidkru...@techie.comwrote:
On Oct 9, 3:27 pm, nextpulse <rob...@nextpulse.comwrote:
On Fedora, using php5. The mail() function returns a success - but the
mail itself is not actually sent.
How do I go about debugging this? Do I need to do this at the linux
command level to ensure mail is working? any logs i need to look at?
You could probably check the messages log file. Be sure that sendmail
is working, and that on the receiving end it is not being blocked. If
your linux host is not setup for the right MX, for mail it is sending
as, it is normal for receiving mail servers to discard, or at least
flag it as being spam. check your /var/spool/mqueue after verifying
that sendmail is operating, your mails should be listed there, if
sendmail is not working to relay the mail.
Also be sure that you have an SMTP and smtp port setup under [mail
function] in your php.ini file.

Yep. They are all setup.
Essentially, this worked on another box (fedora 4 and php4). I am
porting it to a new box (php5) and it stopped working (with no code
changes). So I am debugging to try an locate the issue. Any help in
this area will be appreciated. Logs to look at etc.
Also:
If I use SMTP to use an external mail server - how do I pass in the
login info?

Oct 9 '07 #6
On Oct 9, 6:00 pm, nextpulse <rob...@nextpulse.comwrote:
On Oct 9, 3:08 pm, nextpulse <rob...@nextpulse.comwrote:


On Oct 9, 2:19 pm, dkruger <davidkru...@techie.comwrote:
On Oct 9, 4:17 pm, dkruger <davidkru...@techie.comwrote:
On Oct 9, 3:27 pm, nextpulse <rob...@nextpulse.comwrote:
On Fedora, using php5. The mail() function returns a success - but the
mail itself is not actually sent.
How do I go about debugging this? Do I need to do this at the linux
command level to ensure mail is working? any logs i need to look at?
You could probably check the messages log file. Be sure that sendmail
is working, and that on the receiving end it is not being blocked. If
your linux host is not setup for the right MX, for mail it is sending
as, it is normal for receiving mail servers to discard, or at least
flag it as being spam. check your /var/spool/mqueue after verifying
that sendmail is operating, your mails should be listed there, if
sendmail is not working to relay the mail.
Also be sure that you have an SMTP and smtp port setup under [mail
function] in your php.ini file.
Yep. They are all setup.
Essentially, this worked on another box (fedora 4 and php4). I am
porting it to a new box (php5) and it stopped working (with no code
changes). So I am debugging to try an locate the issue. Any help in
this area will be appreciated. Logs to look at etc.

Also:
If I use SMTP to use an external mail server - how do I pass in the
login info?- Hide quoted text -

- Show quoted text -
I could be wrong about this...but I don't think you should need to
authenticate to use most external mail servers. If you can configure
the mail server, I would allow relaying from your php box on the mail
server. Otherwise, you might need to download an sasl module or
something. It would be easier to enable relaying for the particular
IP on the mail server side likely.

Oct 10 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Elbert Lev | last post by:
I started with Python two weeks ago and already saved some time and efforts while writing 2 programs: 1. database extraction and backup tool, which runs once a month and creates a snapshot of...
4
by: Matt | last post by:
For debugging javascript purposes, should we ensure the following check boxes (1-3) are checked. In IE browser, tools->Internet Options->Advanced Under Browsing, 1) disable script debugging...
8
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- ...
11
by: Gustavo Franco | last post by:
Hi, I did a medium complex application in C#, and in some areas the memory goes up to 60Mb, when I finish I dispose everything and setting everything to null and calling GC.Collect, but the...
3
by: Hector Martinez | last post by:
I have a problem with debug, I insert a new BreakPoint and it get an "?" simbol inside. Why does th is happens I need to debug my app... Thank in advantage.
16
by: Serdar Kalaycý | last post by:
Hi everybody, My problem seems a bit clichè but I could not work around. Well I read lots of MSDN papers and discussions, but my problem is a bit different from them. When I tried to run the...
5
by: Bill | last post by:
1. I find that debugging does not work if the JavaScript you wish to debug is included in your program via src="blah". All of my programs use this because I have many common scripts that are used...
4
by: Brian Henry | last post by:
I get the following exception only on one system (dev system) and not on any others... what could cause this?! I can access the SMTP server just fine in E-Mail applications on the machine... ...
5
by: Velvet | last post by:
Can someone tell me to what process I need to attach to be able to step through my classic ASP code in VS.net 2003. I'm working on an XP box with IIS installed. I also have VS.net 2005 (The...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.