"l",
"");
+DefParam("sendmailnow",
+ "If this is on, Bugzilla will tell sendmail to send any e-mail immediately. If you have a large number of users with a large amount of e-mail traffic, enabling this option may dramatically slow down Bugzilla. Best used for smaller installations of Bugzilla.",
+ "b",
+ 0);
DefParam("passwordmail",
q{The email that gets sent to people to tell them their password. Within
my $template = Param("newchangedmail");
my $msg = PerformSubsts($template, \%substs);
- open(SENDMAIL, "|/usr/lib/sendmail -ODeliveryMode=deferred -t") ||
+
+ my $sendmailparam = "-ODeliveryMode=deferred";
+ if (Param("sendmailnow")) {
+ my $sendmailparam = "";
+ }
+ open(SENDMAIL, "|/usr/lib/sendmail $sendmailparam -t") ||
die "Can't open sendmail";
print SENDMAIL trim($msg) . "\n";
if (!$regenerate) {
# Note: fixaddresses may result in a Cc: only. This seems
# harmless.
+ my $sendmailparam = "-ODeliveryMode=deferred";
+ if (Param("sendmailnow")) {
+ my $sendmailparam = "";
+ }
open(SENDMAIL,
- "|/usr/lib/sendmail -ODeliveryMode=deferred -t") ||
+ "|/usr/lib/sendmail $sendmailparam -t") ||
die "Can't open sendmail";
print SENDMAIL $msg;