qanuj / elmah

Automatically exported from code.google.com/p/elmah
0 stars 0 forks source link

Reuse "from" address defined in system.net, mailSettings, stmp #147

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What new or enhanced feature are you proposing?

Currently the errorMail requires to specify the from address, but it's able
to pick the host, port, username and password from system.net ->
mailSettings -> stmp -> network.

It seems that it would be good to also read the from address so it's set
just once in the web.config file and it doesn't have to be adjusted in the
general mailSettings and Elmah's errorMail.

What goal would this enhancement help you achieve?

It avoids error if the main mailSettings account is changed but the person
doesn't realize that it's being used also in Elmah. It also simplifies the
errorMail entry:
  <errorMail to="user@example.com" />

Of course, if it's manually defined then it should behave just like it does
right now.

Original issue reported on code.google.com by aml...@gmail.com on 3 Jan 2010 at 2:38

GoogleCodeExporter commented 9 years ago
Looks like there's even a TODO comment related to this in ErrorMailModule.cs:
http://tinyurl.com/ErrorMailModule-r701-l452

Original comment by azizatif on 13 Jan 2010 at 9:16

GoogleCodeExporter commented 9 years ago

Original comment by jamesdriscoll71 on 21 Feb 2010 at 3:39