Closed GoogleCodeExporter closed 9 years ago
Changed the type of this issue from defect to enhancement.
Original comment by azizatif
on 26 Jun 2007 at 7:39
I like the idea to have the Request like it is on the server, therefore I
simple
take the stream and send it as an attachment:
email.Attachments.Add(New Net.Mail.Attachment(Request.InputStream,
"request.txt"))
Original comment by Daniel.C...@gmail.com
on 26 Jun 2007 at 7:51
ErrorMailModule has been enhanced with three new events, namely Mailing, Mailed
and
DisposingMail that should allow an application to add additional information to
the
error report mail based before it is dispatched. The integration is not as
tight as
in the opened issue but since each application will have varying degrees of
requirements for this feature, the event-based approach seemed the simplest way
to
get the biggest bang for the buck. The events can be used in Global.asax to
create
additional attachments. For example, view state can be tagged on the mail like
this
(assuming ASP.NET 2.0):
void ErrorMail_Mailing(object sender, ErrorMailEventArgs e)
{
string viewState = e.Error.Form["__VIEWSTATE"];
if (string.IsNullOrEmpty(viewState))
return;
e.Mail.Attachments.Add(Attachment.CreateAttachmentFromString
(viewState, "ViewState.txt", Encoding.UTF8, "text/plain"));
}
Original comment by azizatif
on 29 Jun 2007 at 1:50
What about getting this data to the other error providers, like database?
Maybe there would be a more generic 'Error_Outputting' event that would just
let you
add text or streams. You could have properties like 'filestreams' and
'othertext'.
The othertext would be extra text in the body of the email or body of the
database
entry. The filestreams would be turned into attachments in the email and
handled
appropriately in the other output formats....
Original comment by wayne.br...@gmail.com
on 31 Jan 2008 at 4:33
These are certainly suggestions worth considering in a future release, but why
not
post these as a new issue instead of adding to a closed one here?
Original comment by azizatif
on 31 Jan 2008 at 5:24
I posted it here because it is related to this and this solution. Be able to
attach things to be put logged to whatever provider is provided. Would you
like me
to make a new one?
Original comment by wayne.br...@gmail.com
on 31 Jan 2008 at 10:34
> Would you like me to make a new one?
Yes, please, since this issue is specific in its own way (even if similar to
the one
you're proposed), addressed and therefore closed. Since it's closed, it doesn't
appear in the pending issues list and therefore your requests risks getting
forgotten.
> posted it here because it is related to this and this solution
You can always cross-reference this issue in the new one to mention how they
may be
similar.
Thanks.
Original comment by azizatif
on 1 Feb 2008 at 8:16
Original issue reported on code.google.com by
wayne.br...@gmail.com
on 26 Jun 2007 at 4:03