From 7bd0d001e89b4c27865c1756c7bc4829867d6e58 Mon Sep 17 00:00:00 2001 From: "jake%bugzilla.org" <> Date: Fri, 13 Jun 2003 23:41:21 +0000 Subject: Fresh docs compile (first one w/a PDF version). --- docs/html/os-specific.html | 80 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) (limited to 'docs/html/os-specific.html') diff --git a/docs/html/os-specific.html b/docs/html/os-specific.html index 43edb1d23..f130bbf8a 100644 --- a/docs/html/os-specific.html +++ b/docs/html/os-specific.html @@ -357,6 +357,86 @@ CLASS="programlisting" >

4.3.1.3.2. Changes to BugMail.pm

To make bug e-mail work on Win32 (until + bug + 84876 lands), the + simplest way is to have Net::SMTP installed and change this (in + Bugzilla/BugMail.pm):


open(SENDMAIL, "|/usr/lib/sendmail $sendmailparam -t -i") ||
+  die "Can't open sendmail";
+
+print SENDMAIL trim($msg) . "\n";
+close SENDMAIL;
+          

to


use Net::SMTP;
+$smtp_server = 'smtp.mycompany.com';  # change this
+
+# Use die on error, so that the mail will be in the 'unsent mails' and
+# can be sent from the sanity check page.
+my $smtp = Net::SMTP->new($smtp_server) ||
+  die 'Cannot connect to server \'$smtp_server\'';
+
+$smtp->mail('bugzilla-daemon@mycompany.com');  # change this
+$smtp->to($person);
+$smtp->data();
+$smtp->datasend($msg);
+$smtp->dataend();
+$smtp->quit;
+          

Don't forget to change the name of your SMTP server and the + domain of the sending e-mail address (after the '@') in the above + lines of code.