Sending Outlook Email doesn't throw error but doesn't sent mail either

Hi,
I’m currently using the outlook message to give a report to the business after a specific task has been done. Here is the code :


and the catch part :
image

I’m using the outlook activity in a Retry Scope because sometimes Outlook throw error about not being available.

The issue I have is that, often, the last log message (saying that all went good) is executed, but no mail is actually sent. The mail is neiter in Sent items or Sending Outbox, and no error message (not even the one in try/catch) is generated.

Do you have any idea of what is happenning or how I could debug this ?

@Smixi Can you test just the Oulook Mail Message Separately in a Sequence, with some dummy message and check if it Works?

It does work most of the time. For 35 mails, 2 mails were not sent.

@Smixi Is anything dynamic in the Mail? Like are there contents that may change for different situations like the To Address or Subject or the Mail Body ?

The three are changing. But for those unsent mail, I added them to transaction again, and again, some of them got unsent, but some of got sent, so the content shouldn’t be an issue.
Note that I’m joining a file in the mail.

To complete information, I just ran the process on 2 unsent mails, one got sent, the other not.
By looking at Trace file, there were not error during the Send Outlook Mail Message activity (status = Executing, and then status = Closed) and even no Faulted activity in the whole process.

@Smixi Seems Strange :sweat_smile:, Did you try Sending the mail Manually to that mail which was not sent?

No, I’m in production environnement and cannot do that ^^.

@Smixi Have you Logged the To Address, Mail Body and the Filename that you are attaching in the logs?

Yes, but I cannot share them (they are in proper format, but for confidentiality issue can’t post it). (and it doesn’t change that some unsent mails got sent afterward, and vice-versa).
Same with the mail, but it’s somehow constant (only one part of the mail is changing through a .replace operation.

Facing similar kind issue … bot is getting hanged after processing certain transaction. Purpose of the bot is just to sent emails with attachments and attachment is getting created at run time … and while send the email via SMTP it’s getting hanged …

Hello,
I have the exact same issue: some emails are not sent on Outlook, no error are thrown.
By any chance, did you find a solution?
Thanks!

Same Problem…. It is a huge issue since i dont know if all the Mails to the customers that the bot should be sending are really sent!

No error is thrown, please Push the topic.

Same for me! I really need a solution for this!

I am facing a similar issue too. I am using v 1.12.3 email activity package. I changed to the package to an older version…

It works fine now.

Hi! Are the emails stuck in Outbox? Are there multiple outlook accounts configured? If yes, please make sure to remove them (if possible) or create a separate profile
https://www.bemidjistate.edu/offices/its/knowledge-base/create-a-new-profile-in-outlook-2016-windows-10/

I have the same problem. I have checked there is only one account configured in Outlook. And only sends de email in the followimg case:
a) Outlool is open
b) you click the send and receive button within outlook.
It does not work alone as it should.

I solved openning the outlook with the robot and clicking in the send /recevive messages. 3 more steps.