summaryrefslogtreecommitdiffstats
path: root/docs/xml
diff options
context:
space:
mode:
authorjake%bugzilla.org <>2003-05-21 11:15:21 +0200
committerjake%bugzilla.org <>2003-05-21 11:15:21 +0200
commit6f8b21cd699902db2bbd70c8026998e4f5df2ed0 (patch)
treef8cd0f75cdefe01c029ae4c54961b989bc5d1275 /docs/xml
parenta30d43cc6d641404f8c662554e83e8eb03416213 (diff)
downloadbugzilla-6f8b21cd699902db2bbd70c8026998e4f5df2ed0.tar.gz
bugzilla-6f8b21cd699902db2bbd70c8026998e4f5df2ed0.tar.xz
Bug 145965 - Mention the sendmail -> SMTP change for Bugzilla on win32
Patch by Jean-Sebastien Guay <jean_seb@hybride.com>
Diffstat (limited to 'docs/xml')
-rw-r--r--docs/xml/installation.xml40
1 files changed, 39 insertions, 1 deletions
diff --git a/docs/xml/installation.xml b/docs/xml/installation.xml
index d513fb86f..e3ed645f0 100644
--- a/docs/xml/installation.xml
+++ b/docs/xml/installation.xml
@@ -1,5 +1,5 @@
<!-- <!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"> -->
-<!-- $Id: installation.xml,v 1.45 2003/05/17 01:27:47 jake%bugzilla.org Exp $ -->
+<!-- $Id: installation.xml,v 1.46 2003/05/21 02:15:21 jake%bugzilla.org Exp $ -->
<chapter id="installation">
<title>Installation</title>
@@ -1226,6 +1226,44 @@ my $webservergid = '8'
</programlisting>
</section>
+ <section id="win32-code-bugmail">
+ <title>Changes to <filename>BugMail.pm</filename></title>
+
+ <para>To make bug e-mail work on Win32 (until bug 124174 lands), the
+ simplest way is to have Net::SMTP installed and change this (in
+ <filename>Bugzilla/BugMail.pm</filename>):</para>
+
+ <programlisting>
+open(SENDMAIL, "|/usr/lib/sendmail $sendmailparam -t -i") ||
+ die "Can't open sendmail";
+
+print SENDMAIL trim($msg) . "\n";
+close SENDMAIL;
+ </programlisting>
+ <para>to</para>
+ <programlisting>
+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;
+ </programlisting>
+
+ <para>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.</para>
+
+ </section>
+
</section>
<section id="win32-http">