Question About FormMail.pl and the From Address

jlandes

Verified User
Joined
Dec 1, 2005
Messages
561
Location
Lewistown, Pennsylvania, USA
Hello,

I have a user that uses the FormMail.pl script obtained from http://www.nobaloney.net/downloads/formmail/. Everything is working great; however, the user says that all of the emails that come from the form appear to be coming from [email protected]. He would like the emails to look like they are coming from [email protected]. Is something not setup right or is this normal behavior? Any way to change it?

Thanks.
 
I made no changes to that part of the original FormMail.pl program. My guess is that the default is for the from addrss to be the "email" variable if it exists (I've tested this); otherwise the server address.

Perhaps I should rewrite the script ;) .

Thanks for your fix.

Jeff
 
Jeff,

You are correct. The user did not have the form setup correctly with the email variable, so it was showing the server address. The big issue that I have and cannot seem to get fixed even with the additional parameters is that the return path of the emails always shows the server address for the user that the site resides on. For example, [email protected]. I don't see any way around this. Other than that, the script works fine, so you shouldn't need to make any changes. If you want to see any of the headers that I'm seeing from the messages generated by the formmail script, send me a PM. Thanks.
 
The return path is set by exim when it gets the email. I'm not sure how to call exim to get the return path set otherwise. If someone looks it up, perhaps it would be easy to change it.

I've looked at the copyright notice in the file, and I'd have to find Matt and/or his assignees, and get permission, to distribute the file if any more changes are made to it.

Jeff
 
Back
Top