projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
686ac9d
)
queue all email receipts, RT#22731, RT#23023
author
Ivan Kohler
<ivan@freeside.biz>
Wed, 15 May 2013 09:32:57 +0000
(
02:32
-0700)
committer
Ivan Kohler
<ivan@freeside.biz>
Wed, 15 May 2013 09:32:57 +0000
(
02:32
-0700)
FS/FS/Misc.pm
patch
|
blob
|
history
diff --git
a/FS/FS/Misc.pm
b/FS/FS/Misc.pm
index
afe056f
..
dbebf33
100644
(file)
--- 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: