diff options
Diffstat (limited to 'docs/html/os-specific.html')
-rw-r--r-- | docs/html/os-specific.html | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/docs/html/os-specific.html b/docs/html/os-specific.html index 43edb1d23..f130bbf8a 100644 --- a/docs/html/os-specific.html +++ b/docs/html/os-specific.html @@ -357,6 +357,86 @@ CLASS="programlisting" ></TR ></TABLE ></DIV +><DIV +CLASS="section" +><H4 +CLASS="section" +><A +NAME="win32-code-bugmail" +></A +>4.3.1.3.2. Changes to <TT +CLASS="filename" +>BugMail.pm</TT +></H4 +><P +>To make bug e-mail work on Win32 (until + <A +HREF="http://bugzilla.mozilla.org/show_bug.cgi?id=84876" +TARGET="_top" +>bug + 84876</A +> lands), the + simplest way is to have Net::SMTP installed and change this (in + <TT +CLASS="filename" +>Bugzilla/BugMail.pm</TT +>):</P +><TABLE +BORDER="0" +BGCOLOR="#E0E0E0" +WIDTH="100%" +><TR +><TD +><FONT +COLOR="#000000" +><PRE +CLASS="programlisting" +> open(SENDMAIL, "|/usr/lib/sendmail $sendmailparam -t -i") || + die "Can't open sendmail"; + +print SENDMAIL trim($msg) . "\n"; +close SENDMAIL; + </PRE +></FONT +></TD +></TR +></TABLE +><P +>to</P +><TABLE +BORDER="0" +BGCOLOR="#E0E0E0" +WIDTH="100%" +><TR +><TD +><FONT +COLOR="#000000" +><PRE +CLASS="programlisting" +> 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; + </PRE +></FONT +></TD +></TR +></TABLE +><P +>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.</P +></DIV ></DIV ><DIV CLASS="section" |