From 6f8b21cd699902db2bbd70c8026998e4f5df2ed0 Mon Sep 17 00:00:00 2001 From: "jake%bugzilla.org" <> Date: Wed, 21 May 2003 09:15:21 +0000 Subject: Bug 145965 - Mention the sendmail -> SMTP change for Bugzilla on win32 Patch by Jean-Sebastien Guay --- docs/xml/installation.xml | 40 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) (limited to 'docs/xml') 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 @@ - + 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