My website creates an email from an HTML template using MailDefinition and ending up with a System.Net.Mail.MailMessage object.
Usually, I just call the Net.Mail.SmtpClient.Send method and the email is sent.
Now I need to be able to open the created email in the clients default mail program and then they click their email programs send button to send it.
Has anyone got an ideas on how to proceed?
This is in VS2005.
You’ll want to use a mailto: link — which means, if this is the only method your users will have to send emails, that your code that uses SmtpClient will no longer be used.
Unfortunately, unless this is an intranet-only application, you don’t have too many other options, as browsers will not give you enough permissions to execute code against that machine’s default email client.