Results 1 to 2 of 2

Thread: Outlook No notifcation

  1. #1

    Thread Starter
    Fanatic Member Bombdrop's Avatar
    Join Date
    Apr 2001
    Location
    St Helens, England, UK
    Posts
    667

    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:
    1. Private Sub Command1_Click()
    2.     Dim objOutLookApp As New Outlook.Application
    3.     Dim objNameSpace As Outlook.NameSpace
    4.     Dim objMail As Outlook.MailItem
    5.     Dim colAttachment As Attachments
    6.        
    7.     Set objOutLookApp = Outlook.Application
    8.     Set objNameSpace = objOutLookApp.GetNamespace("MAPI")
    9.  
    10.     Set objMail = objOutLookApp.CreateItem(olMailItem)
    11.     objMail.To = EMAILADDRESS
    12.     objMail.Subject = "subject"
    13.     objMail.Body = "message"
    14.     Set colAttachment = objMail.Attachments
    15.     colAttachment.Add ("c:\test.txt")
    16.         objMail.Send
    17. End Sub

  2. #2
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    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 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
  •  



Click Here to Expand Forum to Full Width