BUg Email Notification Configuration Setup in Bugzilla 2.18.1 (OS - MS2000 Professional)

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

BUg Email Notification Configuration Setup in Bugzilla 2.18.1 (OS - MS2000 Professional)

rakeshdhankhar@gmail.com
I am stuck w/mailbug option in Bugzilla. I have done the installation
of bugzilla 2.18.1 on Windows 2000 Professional system. As per the
instructions in the <The Bugzilla Guide - 2.18 Release>  Section
2.4.1.3 I made the below mentioned changes but in vain. Having done so
some error is throw

Proposed 2.4.1.3. Code changes required to run on win32
----------------------START of I-----------------------------------

Bugzilla on win32 is mostly supported out of the box; one remaining
issue is related to bug email. To make bug
email work on Win32 (until bug 49893
(http://bugzilla.mozilla.org/show_bug.cgi?id=49893) lands), the
simplest
way is to have the Net::SMTP Perl module installed and change this line
in the file 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;
my $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('[hidden email]'); # 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 email address (after the '@') in
the above lines of code.
----------------------END of I--------------------------------------


Error thrown following changes
----------------------START of II-----------------------------------

CGI Error
The specified CGI application misbehaved by not returning a complete
set of HTTP headers. The headers it did return are:


Unrecognized character \x92 at Bugzilla/BugMail.pm line 869.
Compilation failed in require at CGI.pl line 47.
BEGIN failed--compilation aborted at CGI.pl line 47.
Compilation failed in require at D:\bugzilla-2.18.1\index.cgi line 33.
----------------------END of II------------------------------------

To Add further I have been following some thread/discussions on the
group.
https://bugzilla.mozilla.org/show_bug.cgi?id=280911#c16

I guess the solution is marked out in this issue. But I struggled
w/comprehending the solution. Can somebody point out straight in what
file what changes to make.

Prompt response shall be appreciated.

_______________________________________________
mozilla-webtools mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-webtools
Reply | Threaded
Open this post in threaded view
|

Re: BUg Email Notification Configuration Setup in Bugzilla 2.18.1 (OS - MS2000 Professional)

Steve Wardell-2
[hidden email] wrote:

> I am stuck w/mailbug option in Bugzilla. I have done the installation
> of bugzilla 2.18.1 on Windows 2000 Professional system. As per the
> instructions in the <The Bugzilla Guide - 2.18 Release>  Section
> 2.4.1.3 I made the below mentioned changes but in vain. Having done so
> some error is throw
>
> Proposed 2.4.1.3. Code changes required to run on win32
> ----------------------START of I-----------------------------------
>
> Bugzilla on win32 is mostly supported out of the box; one remaining
> issue is related to bug email. To make bug
> email work on Win32 (until bug 49893
> (http://bugzilla.mozilla.org/show_bug.cgi?id=49893) lands), the
> simplest
> way is to have the Net::SMTP Perl module installed and change this line
> in the file 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;
> my $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('[hidden email]'); # 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 email address (after the '@') in
> the above lines of code.
> ----------------------END of I--------------------------------------
>
>
> Error thrown following changes
> ----------------------START of II-----------------------------------
>
> CGI Error
> The specified CGI application misbehaved by not returning a complete
> set of HTTP headers. The headers it did return are:
>
>
> Unrecognized character \x92 at Bugzilla/BugMail.pm line 869.
> Compilation failed in require at CGI.pl line 47.
> BEGIN failed--compilation aborted at CGI.pl line 47.
> Compilation failed in require at D:\bugzilla-2.18.1\index.cgi line 33.
> ----------------------END of II------------------------------------
>
> To Add further I have been following some thread/discussions on the
> group.
> https://bugzilla.mozilla.org/show_bug.cgi?id=280911#c16
>
> I guess the solution is marked out in this issue. But I struggled
> w/comprehending the solution. Can somebody point out straight in what
> file what changes to make.
>
> Prompt response shall be appreciated.
>
I used the fake SENDMAIL program from http://www.glob.com.au/sendmail/ 
and followed the set up instructions at
http://www.bugzilla.org/docs/win32install.html

Once I had correctly set up the SENDMAIL.INI I had no email problems at all

might be worth trying this ?
_______________________________________________
mozilla-webtools mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-webtools