Forum Moderators: mack
I wonder if anyone can help me with this. I have tried a zillion configurations and even two different servers (with different configurations), but maybe I am not getting the concept.
As I understand it, it's possible to use FormMail.pl to send form data to an address other than one on the form's home domain, provided you include the domain of the recipient in your referers list and in your recipients list. So here is basically what I have been trying:
$mailprog = '/usr/sbin/sendmail -i -t';
@referers = ('example.com','111.222.333.444','examplemedia.com','222.333.444.555');
@recipients = ('^leha\@example\.com','^leha\@examplemedia\.com');
where the form in question has the following:
<form action="http://www.example.com/FormMail.pl" method="POST">
<input type="hidden" name="recipient" value="leha@examplemedia.com" />
<input type="hidden" name="subject" value="Feedback Form" />
<input type="hidden" name="redirect" value="http://www.example.com/index2.htm" />
=================
Note that the mailprog location is where I am told the sendmail program lives on my client's ISP, that the client does not actually have email on this ISP, but the ISP assures me sendmail should work fine anyway, and that the IP addresses above correspond to the two domains respectively.
The program does the redirect correctly, and if I use the default instead on my redirect page, I can see the form data posted there, so it seems to be sent okay, with no referer errors, but it's just not getting back to my email no matter what I try.
(Also tried changing mailprog to the default $mailprog = '/usr/lib/sendmail -i -t'; and to $mailprog = '/usr/bin/sendmail -i -t'; and neither worked--grasping at straws here...)
Thank you in advance for any help. Desperately,
Leha
[edited by: encyclo at 12:21 am (utc) on May 2, 2007]
[edit reason] examplified, see terms of service [/edit]