For Programmers: Free Programming Magazines  


Home > Archive > PERL Programming > April 2004 > How can I make close not wait for return signal









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 How can I make close not wait for return signal
Sukhbir Dhillon

2004-04-13, 2:37 pm

I'm using following code to send form email. My code is waiting at close
and making the success page wait for a while.
how can I make close not wait for close signal.


##############
open (MAIL, "| $mailprog -i -t -odq -f $youmail") or print "Can't fork (email2)";
print MAIL ("To: $FirstName $LastName \<$Email\>\n");
print MAIL ("From: $yourname \<$youmail\>\n");
print MAIL ("Subject: Automatic response: Reference #\$number\n\n");
print MAIL ("Your request is submitted and will be reviewed in next 2 business days.\n\n");
print MAIL ("Your request is regarding.:\n $Desc\n\n");
print MAIL ("You can use Reference #\$number for further contact.\n\n");
print MAIL ("Date and Time of Submission: $Date\n\n\n");
print MAIL ("Thank you.\n");
print MAIL ("- $yourname\n\n");
close (MAIL);

####################
Thanks
Sukhbir
Sponsored Links







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

Copyright 2008 codecomments.com