Formmail.php won't send to addresses outside

selfwebhosting

Verified User
Joined
Jan 12, 2006
Messages
75
Location
Canada
I am running Jack's formmail.php - by the way, that is a very good script that won't expose recipient(s) email address(es). However, after rebuilding apache following instructions given here:

http://www.directadmin.com/features.php?id=441 (I need to rebuild apache this way because the earlier system did not work well with Frontpage Extensions)

with the help of John at DA and smtalk, everything is OK except one thing: my formmail.php works only when I use a recipient email that is hosted on the server; if I use a email address hosted on another server then I cannot receive any email sent through the formmail.php

Does anyone else have similar problem?
 
Does the email make it to your exim daemon? To find out:
Code:
# tail -f /var/log/exim/mainlog
while using the script to send an email.

Is your server properly resolving domain names off the server? To find out:
Code:
$ nslookup earthlink.net
Jeff
 
Yes, for some reason it is working now and the nslookup command resolves all earthlink.net's 11 IPs.

However, something very strange occurs. In the test message I sent from http://www.selfwebhosting.ws/emailblocked.php the "From" and "Reply-To" fields show someone else email address instead of the email address I entered into the "Your Email" field. The tag for that field is "email"

How could this happen? I tested another contact form using this same formmail.php and it does not have this problem. This is really strange. The thing is the unexpected email address showing in the "From" and "Reply-To" fields belongs to a known and existing client of mine. Does this mean he modified something (maybe unintentionally) on the server. No, he is not granted SSH login. Just wonder how does his email get injected into the email field.
 
I believe that would have to be coming from something in the PHP code.

You can try a test using my FormMail.pl script found here to see if it works properly. However be sure to read the readme file before you install this file. It's quite secure but the documentation is in two files.

Jeff
 
Interesting, when I tested the contact form using another computer, the problem is gone! Maybe rebuilding php did the trick. Anyway, thanks for all your help.
 
Back
Top