I'm making a program that should mail automaticly
but everytime i run my code i ged a dialogbox from
outlook with a warning for the user to alow this action
i don't want that is there a way to supres the dialog or a other way to mail in vb.
i saw some code ones that used winsock but that didn't
supported attachment my code chould support attachements
anyone who hase a solution let me know.
thats code i tried that gives the dialogs
------------------------------------------------------------------------
Private Sub Command1_Click()
Set myOlApp = CreateObject("Outlook.Application")
Set myItem = myOlApp.CreateItem(olMailItem)
Set myAttachments = myItem.Attachments
Set myRecipient = myItem.Recipients.Add("
[email protected]")
myAttachments.Add "C:\Map1.xls", _
olByValue, 1, "Grafiek met resultaten 4e kwartaal 1996"
myItem.Send
End Sub