Send smtp mail not working

email
activities

#1

Hi All,

When I try to send a gmail message using SMTP .I am getting an error message stating “No such host is known”. I am confused how to use that . Shall I need to configure my gmail in outlook inorder to send and receive mails. I am getting the same error when I try with Imap and POP3 for retrieving mails.
anyone please help me with this.


#2

have you checked the host port and server ?


#3

Hello @DevendraTummala

Please check following setting.

SMTP server address: smtp.gmail.com
SMTP username: Your Gmail address (e.g. example@gmail.com)
SMTP password: Your Gmail password
SMTP port (TLS): 587
SMTP port (SSL): 465
SMTP TLS/SSL required: yes

Please Feel free to contact me if you still facing issue

Best regards,
Aditya


#4

Hi @rahatadi . Thanks for your reply.

I have worked the same way but I am unable to connect to gmail


#5

Hi @DevendraTummala,

If you are using it with Gmail account you need to grant permission “send mail with less secure aap”

Mail.xaml (6.0 KB) refer this workflow. it is working fine for me.

Cheers :slight_smile:


How to send a mail through UIPath while using SMTP,Outlook and send exchange mail mesage?
How to send a mail through UIPath while using SMTP,Outlook and send exchange mail mesage?
#6

hi guys…I’m getting this error …any idea?

image

before was working fine …but now I guess that is because the new version …


#7

here I found the solution … Send SMTP mail message gets an invalid certificate error after updating to Mail activity 1.1.6562.21018


#8

Thanks for the solution. it worked.


#9

Hi @Adityan @Aditya1,

i am using Smtp Mail control to send a mail

in Secure connection :there are several options are: Auto, None, SsIOnconnect, StarTIs, StarTIswhen Available 5 options which one i need to use ?

then SSL and TLS you are saying in properties not available

in port : we need to give this no 587 or 465


#10

Hi, below is my error
could you please help me out

"Main has thrown an exception

Message: The requested name is valid, but no data of the requested type was found

Source: Send SMTP Mail Message

Exception Type: SocketException

System.Net.Sockets.SocketException (0x80004005): The requested name is valid, but no data of the requested type was found
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)"