PDA

View Full Version : Help with Sendmail/formmail


shaneburrows
01-21-2003, 08:17 PM
I am using Matthew Wright's Formmail script (http://www.scriptarchive.com) and everything appears to be working correctly with the exception of I send off an email and it disappears into a black hole never to be seen again. I have set the variables as follow:

$mailprog = '/usr/sbin/sendmail -i -t';
@referers = ('climb-utah.com','www.climb-utah.com');
@recipients = ('shane@sisna.com');

My webpage I run the script from is at:
http://climb-utah.com/feedback1.htm

My webhost sent me the following info when I signed up:

If you will be needing paths to perl and sendmail, here they are...
usr/bin/perl
usr/sbin/sendmail

Any help would be appreciated. You are welcome to send a message from the webpage cause I'll never receive it.

Thanks
Shane Burrows

Philip M
01-22-2003, 07:08 PM
Reading the instructions, I see it says:-

Let's say you only want yourself@yourdomain.com to be able to receive any form submissions. You should then set the @recipients array to:

@recipients = ('^yourself\@yourdomain\.com');

Have you included the escape character before the @ and the period?

Another possible thing - try it without the -t parameter.
This was not in earlier versions of FormMail.

You may also want to look at this instruction:-

"As of version 1.7, the domains listed here are also used as the defaults when checking valid recipient e-mail addresses. You should either include all domain names that you wish to have FormMail send e-mails to in your @referers array or tailor the @recipients array by hand."

I see that the referer domain is not the same as the recipient domain. This could be part of the problem.

shaneburrows
01-23-2003, 02:48 AM
OK
I used "which mail" and my sendmail path is correct at

/usr/sbin/sendmail

switched recipients to

@recipients = ('^shane\@climb-utah\.com');

Switched referers to:

@referers = ('climb-utah.com','www.climb-utah.com','64.106.145.110');

And still no luck, any more suggestions?

Shane

Philip M
01-23-2003, 06:47 PM
Hum! Perplexing!

I can only suggest that you hard-code the recipient and
test it to see if that sends you the mail.


print MAIL "To: me\@mydomain.com\n"; # Only this one valid recipient #


If not, I wonder if somehow a line of code has become deleted in FormMail. Try starting again from scratch!