Send Email from VB.NET using the equivalent of the ShellExecute API

Use the System.Diagnostics.Process.Start namespace.

    
   Dim strParms As String = _
         "mailto:MyEmail@something.com?subject=this is the subject&body=this is the body"
         
   System.Diagnostics.Process.Start(strParms)         



About TheScarms
About TheScarms


Sample code
version info

If you use this code, please mention "www.TheScarms.com"

Email this page


© Copyright 2024 TheScarms
Goto top of page