A
Alain Dekker
Anybody know of a way to send email (using a SMTP server, I guess) using C#?
I'd probably need to use SSL encryption.
Thanks,
Alain
I'd probably need to use SSL encryption.
Thanks,
Alain
Alain Dekker said:Anybody know of a way to send email (using a SMTP server, I guess)
using C#? I'd probably need to use SSL encryption.
Thanks,
Alain
Anybody know of a way to send email (using a SMTP server, I guess) using C#?
I'd probably need to use SSL encryption.
The simplest method would be to use the email client that already is
configured on the machine and the one the user are used to.
You just need one statement for that:
System.Diagnostics.Process.Start("mailto:[email protected]?subject=Testing
email from C#&body=First paragraph of message%0A%0aSecond paragraph.");
I'm quite sure he doesn't want an email message to pop up and the user
to have to hit the Send button. Also, not all clients honor the "body"
part.
Lee J. Moore said:It's an OK solution if you're writing for a single client with a
predictable setup (assuming they don't mind this behaviour), but yeah, not
everybody even has a default email client configured now that webmail
accounts are so prolific, so it's pretty much asking for trouble if being
deployed to multiple users.
I personally hate it when clicking a contact link on a website results in
the email client being launched, and I'd like that behaviour even less in
an application.
Not LJM from tv.misc in the olden days is it? Blast from the past if
so.