M
Michael Turner
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:[email protected]">mailto:[email protected]</A>")
MsgBuilder.Append("<A
href="mailto:&[email protected],[email protected]">&[email protected]
,[email protected]</A>")
MsgBuilder.Append("<A
href="mailto:&[email protected],[email protected]">&bcc=testcc@testbc
c.com,[email protected]</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)
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:[email protected]">mailto:[email protected]</A>")
MsgBuilder.Append("<A
href="mailto:&[email protected],[email protected]">&[email protected]
,[email protected]</A>")
MsgBuilder.Append("<A
href="mailto:&[email protected],[email protected]">&bcc=testcc@testbc
c.com,[email protected]</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)