From: jake%bugzilla.org <> Date: Fri, 4 Apr 2008 11:46:36 +0000 (+0000) Subject: Bug 145965 - Mention the sendmail -> SMTP change for Bugzilla on win32 X-Git-Tag: bugzilla-3.1.3~205 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25baaa26c4b1762754372bd701150ab2119586d2;p=thirdparty%2Fbugzilla.git Bug 145965 - Mention the sendmail -> SMTP change for Bugzilla on win32 Patch by Jean-Sebastien Guay --- diff --git a/docs/en/xml/installation.xml b/docs/en/xml/installation.xml index 7914200ee7..6686a47ebc 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. + +
+