From 25baaa26c4b1762754372bd701150ab2119586d2 Mon Sep 17 00:00:00 2001 From: "jake%bugzilla.org" <> Date: Fri, 4 Apr 2008 11:46:36 +0000 Subject: Bug 145965 - Mention the sendmail -> SMTP change for Bugzilla on win32 Patch by Jean-Sebastien Guay --- docs/en/xml/installation.xml | 40 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) (limited to 'docs/en/xml/installation.xml') diff --git a/docs/en/xml/installation.xml b/docs/en/xml/installation.xml index 7914200ee..6686a47eb 100644 --- a/docs/en/xml/installation.xml +++ b/docs/en/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. + +
+
-- cgit v1.2.3-24-g4f1b