UIPATH Gmail SMTP Error

email
activities
p_notaproblem

#1

Hi There !,
I have enabled all the settings in my gmail account but I am still getting an error in UIPATH stating the below Exception

"PDF_Path has thrown an exception

Source: Send SMTP Mail Message

Message: A non-recoverable error occurred during a database lookup

Exception Type: SocketException

System.Net.Sockets.SocketException (0x80004005): A non-recoverable error occurred during a database lookup
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)"


How to send smtp mais by UiPath?
#2

Hi @AryanPrakash!

This error occurs because the SMTP Server is incorrect. So instead of "smtp@gmail.com" please type smtp.gmail.com.


#3

Thanks Alot @ovi.
That was a silly mistake :slight_smile:


#4

Hi @ovi
I have configured everything in SMTP yet i get an error message saying - "The specified string is not in the form required for an e-mail address. "


#5

Hi @SHAISTA,
Can you send the screenshot of the activity and properties and error message.
And also Check givien mail id is correct or not.
Regards,
Arivu :slight_smile:


#6

Hi @arivu96
The given email id is correct and i am attaching the screenshot.Please check.

This is the error i get-


#7

Hi @SHAISTA,

Remove the properties->sender->from and name
And try again

Regards,
Arivu :slight_smile:


#8

Thanx @arivu96 . It worked :slight_smile:


#9

Facing an issue with SMTP as in attached screenshot.
image


#10

This was resolved, i had configured wrong SMTP port. Now i am facing issue like invalid credentials even though my credentials are correct.image


#11

it is still throwing error statement even after doing what you stated . From properties section i removed from and name .
any other solution to this issue to resolve ?


#12

Hi Arivu, could you explain why we need to remove sender? Cause I always use that and this time it doesn’t work. Thank u


#13

Hi
Tutorial on smtp gmail