For Programmers: Free Programming Magazines  


Home > Archive > PERL Programming > April 2004 > Re: sending mail using cgi form takes 1/2 minute









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: sending mail using cgi form takes 1/2 minute
Joe Smith

2004-04-07, 4:31 pm

Sukhbir Dhillon wrote:

> my $FirstName = $_[0], $LastName = $_[1], $Email = $_[2], $Dept = $_[3], $Desc = $_[4], $Date= $_[5];


Use parentheses with my() to set multiple variables all at once.

my ($FirstName,$LastName,$Email,$Dept,$Desc
,$Date) = @_;

> open (MAIL, "| $mailprog -oi -t -f $Email") or print "Can't fork (email)";


No! Do not put tainted data on the command line when using "sendmail -oi -t".

-Joe
Sukhbir Dhillon

2004-04-08, 5:32 pm

On Wed, 07 Apr 2004 19:11:43 +0000, Joe Smith wrote:

> Sukhbir Dhillon wrote:
>
>
> Use parentheses with my() to set multiple variables all at once.
>
> my ($FirstName,$LastName,$Email,$Dept,$Desc
,$Date) = @_;
>
>
> No! Do not put tainted data on the command line when using "sendmail -oi -t".
>
> -Joe


can I use MAIL::Sendmail module. Do u think it would speed up the
process.
Sukhbir
Gunnar Hjalmarsson

2004-04-10, 8:30 pm

Sukhbir Dhillon wrote:
> Hi! I'm using this sub to send email from my form but it takes hell
> lot of a time b4 returning 1. any suggestions.


Use a faster mail server.

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com