X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2FMisc.pm;h=dbebf33b82ad9f51806046c168992ee4e275275d;hb=cc9bdd96a6a3c70b87ef3ed1a9aa15bb0923d61c;hp=afe056f87aeaa8509b96e6fa9287f5881d297953;hpb=ce5b34fc81c3a19c2a5b0f780e4b60c60ccfed74;p=freeside.git 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: