From: jake%bugzilla.org <> Date: Wed, 21 May 2003 09:15:21 +0000 (+0000) Subject: Bug 145965 - Mention the sendmail -> SMTP change for Bugzilla on win32 X-Git-Tag: bugzilla-2.17.5~145 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f8b21cd699902db2bbd70c8026998e4f5df2ed0;p=thirdparty%2Fbugzilla.git Bug 145965 - Mention the sendmail -> SMTP change for Bugzilla on win32 Patch by Jean-Sebastien Guay --- diff --git a/docs/xml/installation.xml b/docs/xml/installation.xml index d513fb86f2..e3ed645f05 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. + +
+