Results 1 to 8 of 8

Thread: Argh! Microsft Office update

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2004
    Posts
    262

    Argh! Microsft Office update

    Went crazy today and updated office 2000 on one of our servers. This server has an e-mailer program written in Access. Which send out e-mails. I updated office and everytime it tries to send an e-mail it now asks for my permission!
    Is there anyway around this, eg can I turn this added security off or get it to trust my access application.

  2. #2
    Frenzied Member
    Join Date
    Feb 2003
    Location
    Argentina
    Posts
    1,950

    Re: Argh! Microsft Office update

    How do you send emails? Through .SendObject, Outlook, or some other email program?
    Tengo mas preguntas que contestas

  3. #3
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Argh! Microsft Office update

    This is because your original version of office was 97 which did not have any security on the
    sending of emails.
    Now from 2000 forward they have added more and more security to emailing.

    A couple of ways around it which are not pretty.
    1.) write an Outlook Add-In to do the sending using the trusted application object that is passed in the
    OnConnection parameters. Then you would need to create some king of logic that would, depending on your
    requirements are, pull the data from access and send it. If you went the other way around it may not
    be trusted so it would generate the Security Popup message.

    2.) Purchase a third party control which would bypass it, but I wouldnt recommend it to be installed
    on a server system.

    3.) rewite the sending code using SMTP and setup your own SMTP server. This is probably the better
    of the two options.

    HTH
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2004
    Posts
    262

    Re: Argh! Microsft Office update

    Am sending e-mails like so.

    VB Code:
    1. Dim objApp As Outlook.Application
    2. Dim objrecipient As recipient
    3. Dim objattachments As Attachments
    4. Dim objattachment As attachment
    5. Dim objMailitem As Mailitem
    6. Dim myNS As NameSpace
    7. Dim myfolder As MAPIFolder
    8. Dim destfolder As MAPIFolder
    9. Dim myitems As Items
    10. Dim myitem As Mailitem
    11.  
    12. Private Function sendemail(todest As String, subject As String, body As String) As Boolean
    13. 'On Error GoTo sendwarning:
    14. Dim fnam As String
    15. Dim loopcounter As Integer
    16. loopcounter = 0
    17.  
    18. Set objMailitem = objApp.CreateItem(olMailItem)
    19.  
    20.  
    21. objMailitem.To = todest
    22. objMailitem.subject = subject
    23. objMailitem.body = body
    24. objMailitem.Send
    25. sendemail = True
    26. Exit Function
    27.  
    28. sendwarning:
    29. sendemail = False
    30.  
    31. End Function

    I already had Office 2000 sr1, but went to the website and downloaded some other odds and sods, not quite sure what, just whatever microsoft recomended for office 2000. The only reason I'm worried is at some point we're going to be updating to office xp. Can I send emails with xp as above without it asking for my permissions. Or if anyone could show me some examples of a better way to send e-mails that would be great.

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2004
    Posts
    262

    Bit worried

    Am a bit worried, as have had a search around and it seems like future versions of Office will display this warning
    http://msdn.microsoft.com/library/de..._ac_olauto.asp
    As a some pint we will have to upgrade and this e-mailer program is critical, whats the best way around this, any help would be great.

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2004
    Posts
    262

    Re: Argh! Microsft Office update

    Think the following is what I need.

    http://support.microsoft.com/kb/q263297/

    It's all a bit over my head, could anyone just confirm that this will sort my problem out.

  7. #7
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Argh! Microsft Office update

    That only will help if the user is running an account in Exchange and not a pst file. Not to mention that you
    have to configure this for each and every clients machine.

    Best bet is to rewite using SMTP or as an Outlook Add-In. The security only gets tighter and tighter with each
    version/service pack. So unless you want to keep dealing with these kind of issues after each upgrade, I'd highly
    suggest a rewrite.

    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  8. #8

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2004
    Posts
    262

    Re: Argh! Microsft Office update

    Thanks as this e-mailer program is only on one machine and we are running exchange here think it should work.
    Am quite tied to using Outlook as we use it to send faxes via outlook as well as regular e-mails, if fact we use this program for a bit of everything!
    Is quite scary really, it sends about 3000 emails\faxes a day, the main problem is that as it's written in Access as it has to get data from linked tables from an SQL server database and it interaletaes with outlook to such an extent it only takes microsoft office to change a little bit and it's going to come down like a pack of cards.
    Anyway back to my question can you make an access\vba database an add in?

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