5.7.1 this email has been blocked.The file was blocked due to its type and properties

Hello All,
i got this error when I try to send a mail with attachments using SMTP mail message.
Anyone has any idea why this error occurs and what is the solution?

20.4.1

Source: Send SMTP Mail Message with attachment of Output excel

Message: 5.7.1 This email has been blocked. The file Sample.xlsx was blocked due to its file type or properties.

Exception Type: MailKit.Net.Smtp.SmtpCommandException

RemoteException wrapping MailKit.Net.Smtp.SmtpCommandException: 5.7.1 This email has been blocked. The file Sample.xlsx was blocked due to its file type or properties.
at UiPath.Mail.Activities.SendMailActivity.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.System.Activities.IAsyncCodeActivity.FinishExecution(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
— End of stack trace from previous location where exception was thrown —
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at UiPath.Executor.BaseRunner.EndExecute(IAsyncResult result)
at UiPath.Executor.InProcessRunner.EndExecute(IAsyncResult result)
at UiPath.Core.Activities.ExecutorInvokeActivity.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.System.Activities.IAsyncCodeActivity.FinishExecution(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)

@Yoichi @Nithinkrishna @ppr @Palaniyappan @ashwin.ashok @lakshman

Thanks in advance!

Hi @Clinton_Das ,

I’m not sure how much help this will be, but could you give it a try?

Kind Regards,
Ashwin A.K

@Clinton_Das

Hope it might help you.