May 19th, 2005, 05:56 AM
#1
Thread Starter
Fanatic Member
Outlook No notifcation
I wish my app to send an email but do not want the user to confiirm they are sending it.
below is my code for sending the e-mail.
VB Code:
Private Sub Command1_Click()
Dim objOutLookApp As New Outlook.Application
Dim objNameSpace As Outlook.NameSpace
Dim objMail As Outlook.MailItem
Dim colAttachment As Attachments
Set objOutLookApp = Outlook.Application
Set objNameSpace = objOutLookApp.GetNamespace("MAPI")
Set objMail = objOutLookApp.CreateItem(olMailItem)
objMail.To = EMAILADDRESS
objMail.Subject = "subject"
objMail.Body = "message"
Set colAttachment = objMail.Attachments
colAttachment.Add ("c:\test.txt")
objMail.Send
End Sub
Useful Links
.Net
#Develop ,
GhostDoc ,
CodeKeep ,
be.PINVOKE ,
Good Code Snippet Site
Krypton Toolkit ,
XPCC / XP Common Controls ,
QSS Windows Forms Components
VB.COM
VB.Classic Help File ,
MB Controls ,
MZTools ,
ADO Stored Procedure Generator add-in ,
May 19th, 2005, 06:17 AM
#2
Re: Outlook No notifcation
Simple answer is, you can't anymore. Microsoft security has taken away the ability, unless you create a Certificate and install it into Outlook. Robdog has some code to do that in this signature, or the CodeBank.
The alternative is to use SendMail.
Attached Files
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Click Here to Expand Forum to Full Width