PDA

View Full Version : Auto-responder bounce


Philip M
10-20-2002, 12:38 PM
I have an order form which submits via a modified Formmail.pl, which generates an auto-acknowledgement.

A fragment of the script:-

# Open The Mail Program for auto acknowledgement #
open(MAIL,"|$mailprog -t");

print MAIL "From: Autoresponder\@mysite.co.uk\n";
print MAIL "To: $Config{'Email_Address'} ($Config{CustomerName'})\n";


The problem is that if the customer enters an incorrect (but syntactically valid) email address he naturally does not receive the auto response. The mail presumably bounces, but not back to me. The sender and return path are:-
www@fama.uk.myhost.net

My question - what would be the effect if I include

print MAIL "Reply to: Webmaster\@mysite.co.uk\n";

i.e would it bounce failed deliveries back to that address?

This question may be a bit basic but I am not a programmer!

Thanks for any assistance!

ACJavascript
10-22-2002, 05:52 PM
No,, it won't,.. It will be sent back to the sender.. Sent the Set-By code in the email..

Like

To:
Subject:
Relpy:
SentBy

I think thats the word to use.. Not sure.. But that should work..

Hope this sheds some light :D:D

Philip M
10-23-2002, 08:42 PM
Bounce, bounce!

Any other suggestions, please?

I don't think "Sent By" is a valid syntax.

ACJavascript
10-23-2002, 08:52 PM
You are TOTALY right man.. I messed that up big time hehe.. Instead of sent by(WRONG) hehe ,, put From:

To:
From:
Subject:

ect...

That should work :D

sorry my bad:o

Philip M
10-24-2002, 08:22 PM
Well, yes. I have that already, as you can see.

The point of my question is that this does not work, i.e bounces an incorrect email address back to the ISP server and not to me (the sender - From).

frodo
10-25-2002, 11:09 AM
I'd a similiar problem with sendmail and unfortunatly I never got it to work.

If memory serves me right you need to use the -f tag specifiying the bounce address.

An extract from MailLite

<What is the -f, and why do we use it?>
Suppose we did I<not> use C<-f>, and you gave an explicit "From:"
field in your message: in this case, the sendmail "envelope" would
indicate the I<real> user your process was running under, as a way
of preventing mail forgery. Using the C<-f> switch causes the sender
to be set in the envelope as well.

On top of that I think you may have to fiddle with the sendmail configuration file as well... Sorry I can't be of any more help, but somebody may be able to pick up from where I left off.

Investigation Mime:Lite may be of some benefit to you.
If you do come up with the solution, be sure to put it up on the board please.

Cormac.