Thread: Perl/CGI issue
Results 1 to 2 of 2
Related
-
Perl/HTML issue Forum: CGI Perl Forum
Replies: 0 -
How can i execute a perl file within perl programming... Forum: CGI Perl Forum
Replies: 1 -
How to post a variable from HTML to perl and from perl to HTML Forum: CGI Perl Forum
Replies: 1 -
How to post a variable from HTML to perl and from perl to HTML Forum: Website Scripts Forum
Replies: 0
-
11-02-2005, 12:04 AM #1
Perl/CGI issue
I have a strange issue with my CGI contact forms on my newest dedicated server.
Take a look at the two attached CGIs(txts).
The only way I can get this CGI mailer to work is to make the recipient one-of-my@domains.com email addy. If I make it ANY other email addy, it doesn't mail out.(or the recipient does NOT receive the email)
Why would that be?
Thanks!
-
11-02-2005, 10:05 AM #2
Re: Perl/CGI issue
try using this function insted:
Code:sub email_somone{ open(MAIL, "|/usr/sbin/sendmail -t") or return 0; print MAIL, "Reply-to: $_[1]"; print MAIL, "Subject: $_[2]"; print MAIL, "To: $_[0]"; print MAIL, "Content-type: text/plain\n\n"; print MAIL, $_[3]; close(MAIL); return 1; }
NOTE: this is an untested script, but in theory it should work!
-ALL
Cloudjiffy- PaaS for Developers
10-05-2020, 12:30 AM in Web Hosting Forum