473,569 Members | 2,870 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 "undelivere d" message).
I use Linux.
PLEASE HELP. Thanks.
/RAM/
Jul 2 '08 #1
3 1977
r_********@pocz ta.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 "undelivere d" 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_********@pocz ta.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 "undelivere d" 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...@pocz ta.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 "undelivere d" 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
1824
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 offer :) I am running php 5.0.3 on apache 1.3.something under slackware linux. Unfortunately I frequently get segfaults from php scripts, and they...
22
2455
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)) touch($filename); if (is_writable($filename)) $myfile = fopen( $filename,'w+');
0
1449
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 for works? Thank you in advance, Andrea.
0
2555
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 the articles, tutorials, posts that I have seen and browsed ( none of them on PHP5+ though ), all of them speak of a libphp_java.so/java.so file...
5
2311
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 are stability and security. What are the pros/cons/issues for PHP4/PHP5 with apache (either 1.3 or 2)? TIA,
6
6789
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 running SuSE Enterprise Linux 10. The PHP version installed is v5.1.2. Product Name = "DB2 Personal Edition"
2
3308
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 server? Any one give me the domxml.so download link. Regards mageswaran
12
2573
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 Windows XP Pro) I've moved on to Windows Vista (Home Premium). MySQL and Apache2 have both installed satisfactorily, but I'm having problems with PHP5....
3
2061
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 but couldn't find the logical reason, this never happened before please help or guide me to figure it out
0
7703
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7926
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. ...
0
8138
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7679
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...
0
7983
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...
0
6287
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...
1
5514
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
1
1228
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
946
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...

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.