PDA

View Full Version : PHP & Autoresponders


Jacob Stetser
02-22-1999, 12:39 PM
Why won't autoresponders respond to email sent by a PHP script?

I'm tearing my hair out over this one!

These are the headers a regular email program send vs a PHP script:

PHP

To: simple@icongarden.com
Subject: Send more information
From: <jstetser@snafu.mit.edu>

Eudora

To: simple@icongarden.com
From: Jacob Stetser <jstetser@snafu.mit.edu>
Subject: Send more information

Hmm... I'm stumped. Can anyone help?

Jake (p.s. I'm trying to do this, because I'd like to take in someone's email address from a form and have my script send their email address to the autoresponder.. and yes, they know they're getting the autoresponse, that's why they're filling out the form.)

http://www.aota.net/ubb/smile.gif

http://www.aota.net/ubb/frown.gif

Justin
02-22-1999, 05:06 PM
Here's a thought: can you have the PHP page just send them an email with the same contents of the autoresponder? I know this might not meet your needs (especially if you're doing the followup thing), but it could be a quick fix...


------------------
Justin Nelson, SFE Inc.
http://www.vdj.net

Deb
02-22-1999, 05:14 PM
Hmmmm this isn't a fix for your problem.. but it is an observation as to why it's happening...

I tried it with the formmail (preinstalled fq one)

The results are:

1. When mail is sent from a script it is actually sent from webmaster@domain.com even though the 'from feild' for an email program is established to be something different.

Look at the headers of the emails closely (using eudora hit the blahblahblah button)

I filled out the form and hit send... using Deb@FutureQuest.net as my addy

The form sent the email to auto@midnightmerchants.com (this is my autoresponder)

The auto responder did reply -- it replied to webmaster@midnightmerchants.com which is where the script is actually sending it from even though we are changing the email program fields to deb@ --

The autoresponder email header showed that the email was sent from Deb@FutureQuest.net to Webmaster@midnightmerchants.com

>From MAILER-DAEMON Mon Feb 22 20:43:19 1999
Return-Path: <>
Delivered-To: xmidnightmerchants-Owner@midnightmerchants.com
Received: (qmail 23497 invoked by uid 39093); 22 Feb 1999 20:43:19 -0000
Delivered-To: xmidnightmerchants-webmaster@midnightmerchants.com
Received: (qmail 23475 invoked by uid 39093); 22 Feb 1999 20:43:19 -0000
Date: 22 Feb 1999 20:43:19 -0000
Message-ID: <919716199.23474.blah>
Delivered-To: Autoresponder
To: webmaster@midnightmerchants.com
From: YourName <Deb@MidnightMerchants.com>
Subject: Title of the message

this is a test

Received: (qmail 23471 invoked by uid 98); 22 Feb 1999 20:43:19 -0000
Date: 22 Feb 1999 20:43:19 -0000
Message-ID: <19990222204319.23470.qmail@futurequest.net>
To: auto@midnightmerchants.com
From: Deb@FutureQuest.net (Deb)
Subject: Response From Form Mail

Below is the result of your feedback form. It was submitted by
Deb (Deb@FutureQuest.net) on Monday, February 22, 1999 at 15:43:16

So it's responding to the root email addy rather then the specified addy... When you specify a 'from' field the autoresponder is sending the email showing that feild as the from....

The autoresponder is sending the reply to who the email REALLY came from rather then who you are telling it that the email came from. (and it's saying that it sent the reply from the email addy you are saying it's from)

Deb
-- brain hurts... i can see it but can't figure out how to explain it