Kod mene ovo radi najnormalnije vec neko duze vreme
Code:
Private Sub SendMail(ByVal strTo As String, ByVal strSub As String, ByVal strMsg As String)
Dim olApp As Outlook.Application
Dim olNS As Outlook.NameSpace
Dim olMessage As Outlook.MailItem
olApp = CreateObject("Outlook.Application")
olNS = olApp.GetNamespace("MAPI")
olMessage = olApp.CreateItem(Outlook.OlItemType.olMailItem)
olMessage.To = strTo
olMessage.Subject = strSub
olMessage.Body = strMsg
olMessage.Send()
olApp.Quit()
olApp = Nothing
olNS = Nothing
olMessage = Nothing
End Sub
A moze i ovako
Code:
Dim psi As New ProcessStartInfo
psi.UseShellExecute = True
psi.FileName = _
"mailto:" & System.Web.HttpUtility.UrlEncode("neko@gmail.com") & _
"?subject=" & System.Web.HttpUtility.UrlEncode("tema") & _
"&body=" & System.Web.HttpUtility.UrlEncode("tekst", System.Text.Encoding.BigEndianUnicode)
Process.Start(psi)