Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Send a mail with SDK

Status
Not open for further replies.

ced62

Programmer
Aug 27, 2003
15
0
0
FR
Hello,

I use a very simple code to send a mail (with Outlook).

But I have the following prompt : "A program is trying to automatically send e-mail on your behalf. Do you want to allow this ?"

I would like to not have any more this message, do you know how to do ???

Thanks for your help

Sub SendAttachment()

Dim appOutlook As New Outlook.Application
Dim mailItem As mailItem

Set mailItem = appOutlook.CreateItem(olMailItem)

With mailItem
.To = "xxx@xxx.com"
.Subject = "try"
'.Attachments.Add ("c:/doc.txt")
.Body = "ced"
.ReadReceiptRequested = True
.Send

End With

End Sub
 
I have installed the ADMPACK and now that is working well
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top