From: Ivan Kohler Date: Wed, 15 May 2013 09:32:57 +0000 (-0700) Subject: queue all email receipts, RT#22731, RT#23023 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=cc9bdd96a6a3c70b87ef3ed1a9aa15bb0923d61c;p=freeside.git queue all email receipts, RT#22731, RT#23023 --- diff --git a/FS/FS/Misc.pm b/FS/FS/Misc.pm index afe056f87..dbebf33b8 100644 --- a/FS/FS/Misc.pm +++ b/FS/FS/Misc.pm @@ -414,6 +414,20 @@ sub process_send_email { ''; } +=item process_send_generated_email OPTION => VALUE ... + +Takes arguments as per send_email() and sends the message. This +will die on any error and can be used in the job queue. + +=cut + +sub process_send_generated_email { + my %args = @_; + my $error = send_email(%args); + die "$error\n" if $error; + ''; +} + =item send_fax OPTION => VALUE ... Options: