Sending email using enduser's default mail settings

Hi,

I need to add simple email capability to my app but I don't want to bump into issues like end user smtp authentication, etc.

Is there a simple way to automate end users default email client to send email

Thanks !



Answer this question

Sending email using enduser's default mail settings

  • RussP

    unfortunately not - you need to supply the SMTP class the correct credential details as well as SMTP gateway, or use your own :-)

    The end user may not have a default email client, or if they do then you could probably use the email client to send an email but they would have to hit the "send" button. You could use the outlook COM interop approach but again, it may not work as the end user may not have outlook installed.

    Take a look at this for programmatically composing an email message with all fields populated to your liking:

    http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=654502&SiteID=1

    all the user would need to do then is press the send button.

    You can include as you may know the System.Net.Mail classes but you need to give it authentication details.



  • PiGuy

    Thanks very much. Pity smtp authentication is necessary to protect us from evil.
  • Sending email using enduser's default mail settings