Mail can not sent

Hi all
after run the bot from orchestrator the gmail can not send to respected mail
thair is unattended robot

Hello @Shubham_Bidwai

Could you please provide more info about the issue? Is it happening only while running from the orchestrator? ANd any specific error you are getting?

Thanks

@Rahul_Unnikrishnan no error getting bot is run properly but mail can not shown to inbox

Which activity are you using?

use gmail and send mail

Could you share any screenshots of the activity and the inputs you have given?

@Kavi_Varun can i share log

sure you can


their are 43 page




Hi, you can see it says something like Use Gmail Cancelled, it think there are some errors in the previous steps itself mabye if you could check and rectify

Meanwhile here is how to send gmail emails from UiPath:
https://docs.uipath.com/installation-and-upgrade/docs/studio-enabling-gmail-for-email-activities

you can create an app password in the gmail account and use the IMAP Activity

@Kavi_Varun actually i run two different bot but their is one same issue is mail can not send

can you run in debug mode and see if the email activity is executed, i think it is not being executed

@Kavi_Varun after debug/run mail send to that mail id but run through orchestrator


My guess is that the error in the directory is causing the issue, do you get this directory error in your debug run?

by debug mode no error shown

Can you please make sure the email is not stuck in the draft box? Also, validate the email id provided.

Because if its working from studio, it should work from orchestrator also.

Thanks

@Rahul_Unnikrishnan


this error shown when run from assitance

@Rahul_Unnikrishnan @Kavi_Varun
can u solution for the error
Automation: Testpackage
Account: STS\SHUBHAM.BIDWAI
Machine Name: STSPC90
Info: Directory “C:\Users\shubham.bidwai.nuget\packages\testpackage\1.0.11\content.data” doesn’t exist.

System.ArgumentException: Directory “C:\Users\shubham.bidwai.nuget\packages\testpackage\1.0.11\content.data” doesn’t exist. at UiPath.Shared.Activities.ActivityArgumentHelper.GetValidAbsolutePath(InArgument`1 filePath, ActivityContext context, String emptyArgumentErrorMessage, String nonexistentPathErrorMessageTemplate, String invalidCharactersInPathErrorMessage, String fileDoesNotExistMessageTemplate, Boolean checkFileExistsOrThrow)
at UiPath.Mail.Activities.Business.HtmlEditor.HtmlContentArgument.GetContent(ActivityContext context)
at UiPath.Mail.Activities.Utils.ActivityWithMailBodyProperty.ResolveBody(AsyncCodeActivityContext context, Boolean includeStyles)
at UiPath.Mail.Activities.Business.SendMailX.ExecuteAsync(AsyncCodeActivityContext context, CancellationToken cancellationToken)
at UiPath.Shared.Activities.AsyncTaskCodeActivityImplementation.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
at UiPath.Shared.Activities.AsyncTaskCodeActivity.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 —
at UiPath.UIAutomationNext.Activities.NApplicationCard.OnFault(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom)
at System.Activities.Runtime.FaultCallbackWrapper.Invoke(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom)
at System.Activities.Runtime.FaultCallbackWrapper.FaultWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
— End of stack trace from previous location —
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)
Start Time: 10-02-2023 - 10:24
End Time: 10-02-2023 - 10:25
Output Values:
{}

HI, that error is coming due to the fact that the file is not there, your workflow stops before it reaches sending email. It might be because you are using absolute path or providing wrong input file path. Please check that and let me know