From 7eb52ce420bf623f9b953511fbecde2284e37ee1 Mon Sep 17 00:00:00 2001 From: "jake%bugzilla.org" Date: Wed, 21 May 2003 02:15:21 +0000 Subject: [PATCH] Bug 145965 - Mention the sendmail -> SMTP change for Bugzilla on win32 Patch by Jean-Sebastien Guay git-svn-id: svn://10.0.0.236/trunk@142682 18797224-902f-48f8-a5cc-f745e15eee43 --- .../bugzilla/docs/xml/installation.xml | 40 ++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/mozilla/webtools/bugzilla/docs/xml/installation.xml b/mozilla/webtools/bugzilla/docs/xml/installation.xml index 01aa8e3f85f..477fc9fd8e8 100644 --- a/mozilla/webtools/bugzilla/docs/xml/installation.xml +++ b/mozilla/webtools/bugzilla/docs/xml/installation.xml @@ -1,5 +1,5 @@ - + Installation @@ -1226,6 +1226,44 @@ my $webservergid = '8' +
+ Changes to <filename>BugMail.pm</filename> + + 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 + 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. + +
+