summaryrefslogtreecommitdiffstats
path: root/docs/html/os-specific.html
diff options
context:
space:
mode:
authorjake%bugzilla.org <>2003-06-14 01:41:21 +0200
committerjake%bugzilla.org <>2003-06-14 01:41:21 +0200
commit7bd0d001e89b4c27865c1756c7bc4829867d6e58 (patch)
tree3d99acdbf36a5516c4c4ad6844f3393a353cb369 /docs/html/os-specific.html
parent6bab73fe02dc15f3a68dc29ac2e7ba1814fdfa1a (diff)
downloadbugzilla-7bd0d001e89b4c27865c1756c7bc4829867d6e58.tar.gz
bugzilla-7bd0d001e89b4c27865c1756c7bc4829867d6e58.tar.xz
Fresh docs compile (first one w/a PDF version).
Diffstat (limited to 'docs/html/os-specific.html')
-rw-r--r--docs/html/os-specific.html80
1 files changed, 80 insertions, 0 deletions
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"
></TR
></TABLE
></DIV
+><DIV
+CLASS="section"
+><H4
+CLASS="section"
+><A
+NAME="win32-code-bugmail"
+></A
+>4.3.1.3.2. Changes to <TT
+CLASS="filename"
+>BugMail.pm</TT
+></H4
+><P
+>To make bug e-mail work on Win32 (until
+ <A
+HREF="http://bugzilla.mozilla.org/show_bug.cgi?id=84876"
+TARGET="_top"
+>bug
+ 84876</A
+> lands), the
+ simplest way is to have Net::SMTP installed and change this (in
+ <TT
+CLASS="filename"
+>Bugzilla/BugMail.pm</TT
+>):</P
+><TABLE
+BORDER="0"
+BGCOLOR="#E0E0E0"
+WIDTH="100%"
+><TR
+><TD
+><FONT
+COLOR="#000000"
+><PRE
+CLASS="programlisting"
+>&#13;open(SENDMAIL, "|/usr/lib/sendmail $sendmailparam -t -i") ||
+ die "Can't open sendmail";
+
+print SENDMAIL trim($msg) . "\n";
+close SENDMAIL;
+ </PRE
+></FONT
+></TD
+></TR
+></TABLE
+><P
+>to</P
+><TABLE
+BORDER="0"
+BGCOLOR="#E0E0E0"
+WIDTH="100%"
+><TR
+><TD
+><FONT
+COLOR="#000000"
+><PRE
+CLASS="programlisting"
+>&#13;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-&#62;new($smtp_server) ||
+ die 'Cannot connect to server \'$smtp_server\'';
+
+$smtp-&#62;mail('bugzilla-daemon@mycompany.com'); # change this
+$smtp-&#62;to($person);
+$smtp-&#62;data();
+$smtp-&#62;datasend($msg);
+$smtp-&#62;dataend();
+$smtp-&#62;quit;
+ </PRE
+></FONT
+></TD
+></TR
+></TABLE
+><P
+>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.</P
+></DIV
></DIV
><DIV
CLASS="section"