Reading mail from my outlook account using robotframework - outlook

I am using Robot-framework with the ImapLibrary for getting the content of latest mail from my outlook account. The error I get is -
**TypeError: 'NoneType' object has no attribute '__getitem__'**
Can somebody help me out please ?
My code is -
*** Settings ***
Library ImapLibrary
*** Test Cases ***
Email Verification
Open Mailbox host=outlook.office365.com user=myname#company.com password=secret
Get Email Body 1
Close Mailbox

Try,
Open Mailbox
host=imap-mail.outlook.com
user=myname#company.com
password=secret

Related

Can you please explain to me what garbageCollectorViewer is?

In gmail I keep getting emails saying garbageCollectorViewer authorization is required to perform that action.
I am not a programmer. Why is gmail sending me these messages?
"
Summary of failures for Google Apps Script: Eml Manager
Your script, Eml Manager, has recently failed to finish successfully. A summary of the failure(s) is shown below. To configure the triggers for this script, or change your setting for receiving future failure notifications, click here.
Summary:
Error Message Count
Authorization is required to perform that action. 48
Start Function Error Message Trigger End
5/3/22 7:51:11 AM PDT garbageCollectorViewer Authorization is required to perform that action. time-based
This is followed by a table recording the same event every 30 minutes! What is the use of this email to me?

I'm trying to trigger a Flow when a new email is received in an O365 Groups mailbox

I am trying to trigger a Flow that identifies the attachment type (e.g. .pdf and .docx) and save it to a team site library if it's a valid attachment. If not, it sends the "from" email address an email saying the attachment is invalid. I have done this successfully for a site mailbox (created before Microsoft removed the ability to create site mailboxes in SP Online) and my personal mailbox, but I am getting the following error when using an O365 Group email inbox:
"message": "You are not authorized to perform this operation. This error can occur for sandbox (test) accounts or if OData operations are disabled by your Exchange server administrator."
Again, this error only occurs when triggering the Flow with:

Ruby mail library How to get Error Reports

I'm using Ruby's mail library and it says you can get the error reports from mails you sent here.
I'm trying to figure out where I can find the path to check the mails that didn't get to the receivers due to the errors.
You need to configure receive method to receive mails from host to you're app. As mentioned here.
In that receiver you'll configure where the mails to be stored. And from that path you can read & retrieve errors.
Without using any receive method you can read any unread/not seen mails from the mail and then you can get error reports.
You can check these post1 & post2 to know about how to read mails.
Link about Receive mail options in rails app.

Dynamics 365 online issue with Email Synchronization (SSS)

in my organization we have a mailbox that receives email from different sources (about 5) everyday, set to track all incoming emails in the CRM.
All the mails are correctly tracked on the CRM every day, except for one that always fails (same source, similar content every day).
If I send the exact same email from another address, the mail is correctly synchronized with the CRM, so I think it could be something related with Exchange.
This is the message I get if I open the mailbox record:
An unknown error occurred while receiving email through the mailbox "xxxxxx".
The owner of the associated email server profile xxxxx has been notified. The system will try to receive email again later.
Email Server Error Code: Exchange server returned UnknownIncomingEmailIntegrationError -2147220970 exception
Looking for this specific message didn't get me any result, while just searching the error code I found out it could be something related to plugins.
Unfortunately there is no plugin that fires on email creation, same for workflows and so on. By the way, sending the email from another address just works fine.
Has anyone ever had such a problem? Is there some place where I can find other logs and dig deeper in the problem?
Thanks in advance.
For anyone else experiencing this issue: I received the error code -2147218683, which is different, but it turns out this was due to the user in question not having the right security role. Gave the account sys admin and the error went away.

error : { "code": "MailboxNotEnabledForRESTAPI", "message": "REST API is not yet supported for this mailbox." }

I am new with the "outlook" api. i want to get all calender event,contact and mail from "outlook account".
but i does not get appropriate result with "outlook" account its working fine with "office365" account
i follow this documentation for get all required data
and i create application for getting data from here
but every time when i login with my outlook account it's give me an error like this.
Please help me out.
Thanks in advance...
Just ran into the same problem and found an explanation here. It appears we're going to have to wait for the accounts to be enabled unless you request a testing account as described in the link. Confirmed the same results when using the non-enabled account in the Outlook Oauth Sandbox.
From the first link
Because enabling mailboxes on Outlook.com for the Outlook REST API happens over a period of time, your existing Outlook.com account may take a while to get enabled. To test your app accessing data on Outlook.com mailboxes that have already been enabled, you can request a new, enabled Outlook.com developer preview account by emailing outlookdev#microsoft.com.
If your app accesses Outlook.com mailbox data, it should handle scenarios where the user's mailbox has not yet been enabled for the Outlook REST API. In such situations, when you make a REST request, you would get an error like the following:
HTTP error: 404
Error code: MailboxNotEnabledForRESTAPI or MailboxNotSupportedForRESTAPI
Error message: “REST API is not yet supported for this mailbox.
Step 1 :
Click the Below Link :
https://oauthplay.azurewebsites.net/?code=M657b8bab-e543-f849-134c-0a2f85179a67&state=17661047-2a14-4c90-9edd-0119f841b559
Step 2:
Step 3 :
Step 4 :
Step 5 :

Resources