473,660 Members | 2,468 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 10786
On Oct 9, 3:27 pm, nextpulse <rob...@nextpul se.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...@te chie.comwrote:
On Oct 9, 3:27 pm, nextpulse <rob...@nextpul se.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...@te chie.comwrote:
On Oct 9, 4:17 pm, dkruger <davidkru...@te chie.comwrote:
On Oct 9, 3:27 pm, nextpulse <rob...@nextpul se.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...@nextpul se.comwrote:
On Oct 9, 2:19 pm, dkruger <davidkru...@te chie.comwrote:
On Oct 9, 4:17 pm, dkruger <davidkru...@te chie.comwrote:
On Oct 9, 3:27 pm, nextpulse <rob...@nextpul se.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...@nextpul se.comwrote:
On Oct 9, 2:19 pm, dkruger <davidkru...@te chie.comwrote:
On Oct 9, 4:17 pm, dkruger <davidkru...@te chie.comwrote:
On Oct 9, 3:27 pm, nextpulse <rob...@nextpul se.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...@nextpul se.comwrote:
On Oct 9, 3:08 pm, nextpulse <rob...@nextpul se.comwrote:


On Oct 9, 2:19 pm, dkruger <davidkru...@te chie.comwrote:
On Oct 9, 4:17 pm, dkruger <davidkru...@te chie.comwrote:
On Oct 9, 3:27 pm, nextpulse <rob...@nextpul se.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
2980
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 important data, compresses and saves it. 2. pop3 "watchdog", which reads e-mail from a pop3 mailbox and in the case there is no mail sends e-mail messages to technicians. (the presence of e-mail in the mailbox tells that the system I'm monitoring...
4
1670
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 2) display a notification about every script error 3) show friendly HTTP error messages
8
5463
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 -------------------------------------------------------------------------------- Hello, I have a very simple problem but cannot seem to figure it out. I have a very simple php script that sends a test email to myself. When I debug it in PHP designer, it works with no problems, I get the test email. If
11
3803
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 memory never goes below 45MB and I'm pretty sure I'm not allocating that huge amount of memory.
3
1520
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
4199
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 project in debug mode (by hitting F5) it gives an error message "Error while trying to run project: Unable to start debugging on the web server.
5
1497
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 throughout my application. It also gives a very limited amount of security to prying eyes. 2. If I extract the portion of the JavaScript I wish to debug and put it locally within the aspx file, the debugging works. 3. If I try to debug both my...
4
1763
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... See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.Web.HttpException: Could not access 'CDO.Message' object. --->
5
2942
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 final, never installed beta) installed on this box if it makes a difference (I did not install VS Development Web Server as I'm already using the XP web server). I've seen that I need to attach to the native IIS engine, but I don't know what it's...
0
8851
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8539
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8630
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7360
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4176
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4342
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2759
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1982
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1739
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.