June 16th, 2000, 03:20 AM
I'm tring a solution for a problem that I not sure if the solution
is about PHP or Apache or Linux or something else
I have a little PHP script that mail to anyone.
It is working fine.
But if the destination addr has a problem, I do not receive a reply
from the destination server.
This reply arrives at the ISP and I don't receive any kind of notification.
The web server is an Apache/1.3.9 Server running at a Linux system and the PHP is Version 3.0.12
Any help on this problem would be greatly appreciated.
June 16th, 2000, 09:58 AM
Definitely sounds like a php issue.
first, to get a simple return for bad emails, make sure you have your From and Reply mail headers set.
$headers = "From: email@example.com";
$headers .= "Reply-To: firstname.lastname@example.org";
If that doesn't work, check out the PHP discussion, there are some samples there that show you how to check for valid email addresses before the form is submitted.
June 16th, 2000, 01:28 PM
This message are there at PHP forum and at Apache too.
The script is:
$Msg = "This is a test of the PHP email routinenn";
$Msg .= "If the destination addr is unknow this email must returnnn";
$Msg .= "to the addr at Reply-To parameter nn";
$Subject = "PHP Email Test";
$AddrTo = "email@example.com";
$Others = "Return-Path: <firstname.lastname@example.org>n";
$Others .= "Reply-To: <email@example.com>n";
$Others .= "From: "PHP Email Test" <firstname.lastname@example.org>n";
Thanks in advance,