Results 1 to 13 of 13
  1. #1
    nobleadi is offline Novice
    Windows 10 Office 365
    Join Date
    Oct 2020
    Posts
    6

    Sending Email ERROR

    Hi, I have spoken to our external IT team regarding this error and they assumed that the error was possibly caused by my version of O365? They uninstalled 64bit and installed 32bit in the hope that it would resolve the issue. Unfortunately it remains the same.

    Outlook is my default mail client.



    Can anyone suggest a fix please?
    Attached Thumbnails Attached Thumbnails EmailError.jpg  

  2. #2
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    there are various ways of sending emails from access, which one are you using? Please provide the code, it could be you have field/variable names which are reserved words which can cause misleading errors.

    Also is this code that has worked in the past and stopped working when O365 was installed?

  3. #3
    nobleadi is offline Novice
    Windows 10 Office 365
    Join Date
    Oct 2020
    Posts
    6
    Quote Originally Posted by Ajax View Post
    there are various ways of sending emails from access, which one are you using? Please provide the code, it could be you have field/variable names which are reserved words which can cause misleading errors.

    Also is this code that has worked in the past and stopped working when O365 was installed?

    Thanks for your quick response. I'm new to posting anything on forums and wasn't expecting an answer so quickly!

    Code:

    Private Sub Command262_Click()

    DoCmd.SendObject acSendNoObject, , , "example@example.co.uk", , , "Test", True


    End Sub


    I have tried a somewhat more complicated code but it returned the same result. The error doesn't seem to suggest that there is a code issue but more of a communication issue.

    I haven't tried it with any other versions, only 365.

    Thanks

  4. #4
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,944
    What happens when you click an email link on your computer?, does Outlook open a email with that email address?

  5. #5
    nobleadi is offline Novice
    Windows 10 Office 365
    Join Date
    Oct 2020
    Posts
    6
    I have just this minute transferred the database over to my own laptop and it works fine. Code is working and the email has sent. I've now narrowed it down to how my works laptop is set up ..... somehow.

  6. #6
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,944
    Well start with, Do you have a default Email client.?

  7. #7
    nobleadi is offline Novice
    Windows 10 Office 365
    Join Date
    Oct 2020
    Posts
    6
    I have. Both settings are 'identical' as far as i see regarding defaults. Tools, reference in VBA is identical also.

  8. #8
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,944
    Quote Originally Posted by nobleadi View Post
    I have. Both settings are 'identical' as far as i see regarding defaults. Tools, reference in VBA is identical also.
    And it is O365 on both computers?

    Try using Outlook with automation? That works with me, quite a neat way for a blank email I must admit.

  9. #9
    nobleadi is offline Novice
    Windows 10 Office 365
    Join Date
    Oct 2020
    Posts
    6
    Quote Originally Posted by Welshgasman View Post
    And it is O365 on both computers?

    Try using Outlook with automation? That works with me, quite a neat way for a blank email I must admit.
    I Have, i think, narrowed down to the version of Windows. The code works on pc's running 10pro 1909 but not on 2004. Million dollar question is what is the difference!!

  10. #10
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,944
    Quote Originally Posted by nobleadi View Post
    I Have, i think, narrowed down to the version of Windows. The code works on pc's running 10pro 1909 but not on 2004. Million dollar question is what is the difference!!
    Nice one
    Only MS can tell you that.

    I'd certainly roll them back for now.

    https://duckduckgo.com/?t=palemoon&q...roblems&ia=web

  11. #11
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,979
    There is another possibility to consider - use Collaborative Data Objects (CDO) to send emails direct from your Access app without involving Outlook at all.
    See http://www.mendipdatasystems.co.uk/e...ter/4594365455
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

  12. #12
    nobleadi is offline Novice
    Windows 10 Office 365
    Join Date
    Oct 2020
    Posts
    6
    Just to say that the issue is fixed. Apparently it is something to do with my profile set-up but unfortunately don't know what. Rather than trying to find which registry that was at fault, a new profile was created. All good!

    Thank you all for your input.

  13. #13
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,944
    Quote Originally Posted by nobleadi View Post
    Just to say that the issue is fixed. Apparently it is something to do with my profile set-up but unfortunately don't know what. Rather than trying to find which registry that was at fault, a new profile was created. All good!

    Thank you all for your input.
    It happens. I joined one of the big banks as a temp once or twice and one of them cocked up my profile?
    Shame as they had plenty to copy from.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 14
    Last Post: 06-19-2020, 03:44 PM
  2. Replies: 1
    Last Post: 11-07-2016, 11:18 AM
  3. Email sending, Record Saving and Error Handling.
    By abodi in forum Programming
    Replies: 6
    Last Post: 08-31-2014, 05:28 PM
  4. Replies: 7
    Last Post: 11-19-2013, 01:58 PM
  5. Replies: 3
    Last Post: 08-03-2012, 02:26 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums