\n%{errormessage}\nYours,\n") % {:errormessage => errormessage, :urlofsite => SITEURL}
subject = _("Bug in dudle")
$d << _("An error occured while executing dudle.
Please send an error report, including your browser, operating system, and what you did to %{admin}.") % {:admin => "#{BUGREPORTMAIL}"}
if (errorstr)
errorheadstr = _("Please include the following as well:")
$d << <
#{errorheadstr}
#{CGI.escapeHTML(errorstr)}
ERROR
end
$d.out
if AUTO_SEND_REPORT
tmpfile = "/tmp/error.#{rand(10000)}"
File.open(tmpfile,"w"){|f|
f << errorstr
}
`mail -s "Bug in dudle" #{BUGREPORTMAIL} < #{tmpfile}`
File.delete(tmpfile)
end