John,
In addition to the other comments.
I normally store the SMTP server's name in the app.config file. Then set the
app.config during install of the app.
Be careful with using a blank SmtpServer property. It indicates to use
"local SMTP server", which I understand to mean localhost.
http://msdn.microsoft.com/library/de...ervertopic.asp
Localhost may not be installed or configured to send SMTP mail to the
correct server. I know some corporations don't install this component as it
was an easy way to send viruses... Plus some firewalls & ISPs place
restrictions on who's port 25 you can connect to.
If your "local SMTP server" is configured properly, your firewall allows it,
and your ISP allows it, then I agree a blank SmtpServer is the way to go...
The following site is an excellent resource on System.Web.Mail:
http://www.systemwebmail.net/
Hope this helps
Jay
"John Davies" <Jo********@discussions.microsoft.com> wrote in message
news:1C**********************************@microsof t.com...
|I want to send a bug report automatically from my VB.NET program. I won't
| know the end user's smtp server or what email client they are using.
|
| The Process.Start with mailto is almost what I need, but the amount of
| information that will fit in the body is too small for a stack dump and
other
| information.
|
| I like the way that it would go into the outbox, but oh well, have to move
on.
|
| My next choice is Indy or System.Web.Mail, but I don't know their SMTP
server.
|
| Can I get it from the registry or some other method? How do programs that
| allow me to register for support from email do it? Do they access their
own
| SMTP servers?
|
|