1 <& /elements/header-popup.html, mt('Email sent') &>
2 <SCRIPT TYPE="text/javascript">
3 setTimeout("parent.cClick()", 3000);
5 <& /elements/footer-popup.html &>
9 # unless $FS::CurrentUser::CurrentUser->access_right('Generate quotation'); #separate rights to generate vs send/email?
11 $cgi->param('quotationnum') =~ /^(\d+)$/ or die "Illegal quotationnum";
12 my $quotationnum = $1;
15 my $quotation = qsearchs('quotation', { 'quotationnum'=>$quotationnum })
16 or die "Unknown quotationnum";
18 $quotation->email({ 'to' => [ $cgi->param('emailaddress') ] });