473,507 Members | 2,416 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

undelivered emails and PHP5 in Linux

Hello,
I am writing a program in PHP5 using mail() function. I need to know if
there's any method to check if there was return email to server
(with "undelivered" message).
I use Linux.
PLEASE HELP. Thanks.
/RAM/
Jul 2 '08 #1
3 1973
r_********@poczta.onet.pl wrote:
I am writing a program in PHP5 using mail() function. I need to know if
there's any method to check if there was return email to server
(with "undelivered" message).
No, because returned mail is not returned to the originating server, but to
the sender email address.

--
----------------------------------
Iván Sánchez Ortega -ivan-algarroba-sanchezortega-punto-es-

¡¡Te he dicho diez millones de veces que no exageres!!
Jul 2 '08 #2
r_********@poczta.onet.pl schrieb:
Hello,
I am writing a program in PHP5 using mail() function. I need to know if
there's any method to check if there was return email to server
(with "undelivered" message).
I use Linux.
PLEASE HELP. Thanks.
/RAM/
You can use the IMAP functions to check if there are Mails.
But some undeliverable mails are not immediatly returned.

Jul 2 '08 #3
On Jul 2, 6:45 pm, Olaf Schinkel <tr...@schinkel.tvwrote:
r_ahims...@poczta.onet.pl schrieb:Hello,
I am writing a program in PHP5 using mail() function. I need to know if
there's any method to check if there was return email to server
(with "undelivered" message).
I use Linux.
PLEASE HELP. Thanks.
/RAM/

You can use the IMAP functions to check if there are Mails.
But some undeliverable mails are not immediatly returned.
You should NEVER try to check for a failed email in the same script
that created the email unless you have designed the script to run as
daemon. It just takes too long.

If it were me, I'd go with recording outgoing mails in a database and
create a PHP script to run as a procmail filter to pick up bounces and
flag them in the DB. But its equally valid to pool a mailbox.

C.
Jul 4 '08 #4

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

Similar topics

4
1817
by: Daniel Andersen | last post by:
Hey, We are in the process of rewriting our internal management system (which was written in PHP4), and figured this would be a good time to migrate to PHP5 to get all the OO goodness it has to...
22
2443
by: Matthias Braun | last post by:
Help! I am using SuSE 9.3, php5 and Apache2 on Linux. I try to write files to the hard drive using the following command: $filename = "test.txt"; if (!file_exists($filename))...
0
1440
by: _andrea.l | last post by:
I'd like to use php5 but at my work we use PHP4. How can use both togheter? I work whith Linux Fedora 4 then I have PHP5 installed so how can install PHP4 and use PHP5 for my experiment and PHP4...
0
2550
by: Rithish | last post by:
OS : RHEL3 PHP version : 5.0.2 JDK version : 1.5.0.06 I have been trying to compile PHP with JAVA support for the past week, and all I have left to do is take a noose and hang myself. Of all...
5
2301
by: sinister | last post by:
I'm starting a database/web interface project, using Linux and postgresql. I've programmed in PHP4 in the past, and for this new project am unsure whether to use PHP4 or PHP5. My main concerns...
6
6768
by: michael.schmitz | last post by:
Hello, my tiny PHP5 test application cannot establish a connection to a database while I am able to connect to the same database using the DB2 command line tool. Our server is 64 bit system...
2
3292
mageswar005
by: mageswar005 | last post by:
hi, I installed php5 in linux server, inside the usr/lib/php5 the domxml.so file is missing,without domsml.so i can'nt able to import scorm packages. How can i install domxml.so to my linux...
12
2566
by: Alan M Dunsmuir | last post by:
After having worked with Apache/MySQL/PHP for a year or so under Linux I need, purely for convenience, to set up a parallel platform under Windows. Unfortunately, since I last did this (using...
3
2057
by: usmanbinasif | last post by:
Dear All, I have problem with my IIS Smtp server, some mails sent on 6th August to 8th August there undelivered messages recieved on 13th August even some mails devlivered in 1st try. I tracked it...
0
7223
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7111
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7319
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,...
0
7376
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7031
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...
0
5623
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,...
0
3191
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...
1
760
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
412
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...

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.