Hi
I need to be able to open the users default mail client and insert an
attachment and the recipients email address automaticly I have come across
the following code and wish to know the following.
1. Will it work on all operating systems, if not which ones will it have a
problem with
2. Is it the best way of doing it.
Dim MsgBuilder As New System.Text.StringBuilder
MsgBuilder.Append("<A
href="mailto:me****@testmail.com">mailto:me****@te stmail.com</A>")
MsgBuilder.Append("<A
href="mailto:&c********@testcc.com,te*****@testcc. com">&c********@testcc.com
,te*****@testcc.com</A>")
MsgBuilder.Append("<A
href="mailto:&b*********@testbcc.com,te*****@testb cc.com">&bcc=testcc@testbc
c.com,te*****@testbcc.com</A>")
MsgBuilder.Append("&subject=this is test subject")
MsgBuilder.Append("&body=this is test body")
MsgBuilder.Append("&Attach="c:\mailattach.txt")
'Debug.WriteLine(MsgBuilder.ToString)
ExecuteFile(MsgBuilder.ToString)