PDA

View Full Version : FormMail Problem



blackhawk110
07-21-2007, 03:54 AM
hi,I'm heidar and I'm new in forum
I have problem in form mail . when i submit after a while it gives Network Error (tcp_error)
. I think the coding is ok but I'n not sure .could the problem be from the server?
the form address: www.ghodousimc.net/post.htm
the pl file name: FormMail.pl
#!perl.exe
#!/usr/bin/perl
use Net::SMTP;
$mailprog = '/usr/sbin/sendmail -i -t';
$mailhost = 'mail.ghodousimc.net';
@referers = ('ghodousimc.net');
@recipients = &fill_recipients('info@ghodousimc.net');
@valid_ENV = ('REMOTE_HOST','REMOTE_ADDR','REMOTE_USER','HTTP_U SER_AGENT');


the rest of the file is like the original not modified.

if u can solve it u will make me a big fever.
thanks

charlesgan
07-22-2007, 02:36 PM
or you can use the form post method to submit to the webmail.
i running it here http://www.hosting-rebate.com/contact.php
works this way