Email with SMTP activity

Hello All,

I need to send the email through gmail using send smtp activity. But in that hostname I entered port-587 and server- smtp.gmail.com. But here I’m getting an error like “Send SMTP Mail Message: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.”
How to resolve this issue? what port and server number I have to give.please help me with this.

The error message you’re encountering, “A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond,” typically indicates that UiPath is unable to establish a connection with the SMTP server. This can happen for a few reasons:

  1. Firewall or Antivirus Blocking: Ensure that your firewall or antivirus software is not blocking the connection to the SMTP server. Sometimes, security software can prevent outgoing connections on certain ports.

  2. Incorrect Port or Server: While you’ve mentioned that you’re using port 587 and the server “smtp.gmail.com,” these settings are generally correct for sending emails through Gmail. However, it’s always a good idea to double-check that you’ve entered them correctly.

  3. Network Issues: Ensure that your machine has internet connectivity, and there are no network issues preventing it from reaching the Gmail SMTP server. Sometimes, network configurations or outages can cause connection problems.

  4. Authentication: Ensure that you’ve configured the SMTP activity with the correct Gmail email address and password or an App Password (if you have two-factor authentication enabled for your Gmail account). This is necessary to authenticate with Gmail’s SMTP server.

Here are some steps you can take to troubleshoot and resolve this issue:

  1. Check Firewall and Antivirus Settings: Temporarily disable your firewall or antivirus software and try sending the email again. If it works, you may need to add an exception for UiPath in your security software settings.

  2. Double-Check Port and Server: Ensure that you’ve correctly entered port 587 and server “smtp.gmail.com” in the SMTP activity properties.

  3. Internet Connection: Verify that your machine has a stable internet connection and can access external websites. Sometimes, a network issue can disrupt SMTP connections.

  4. Authentication: Double-check your email address and password in the SMTP activity. If you have two-factor authentication enabled for your Gmail account, consider using an App Password instead of your regular password. You can generate an App Password in your Gmail account settings.

  5. SMTP Security Settings: Ensure that you’ve configured the appropriate security settings, such as “UseSSL” or “UseTLS,” depending on your Gmail account settings.

  6. Less Secure Apps: Check whether “Less secure apps” is enabled in your Gmail account settings. If not, you may need to enable it to allow external applications like UiPath to access your Gmail account.

  7. Captchas and Security Challenges: Gmail sometimes presents security challenges, like captchas, when it detects unusual sign-in attempts. Make sure you can sign in to your Gmail account from a web browser without any issues.

After trying these steps, if the issue persists, you may need to consult your organization’s IT department or your email service provider’s support for further assistance.The error message you’re encountering, “A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond,” typically indicates that UiPath is unable to establish a connection with the SMTP server. This can happen for a few reasons:

  1. Firewall or Antivirus Blocking: Ensure that your firewall or antivirus software is not blocking the connection to the SMTP server. Sometimes, security software can prevent outgoing connections on certain ports.

  2. Incorrect Port or Server: While you’ve mentioned that you’re using port 587 and the server “smtp.gmail.com,” these settings are generally correct for sending emails through Gmail. However, it’s always a good idea to double-check that you’ve entered them correctly.

  3. Network Issues: Ensure that your machine has internet connectivity, and there are no network issues preventing it from reaching the Gmail SMTP server. Sometimes, network configurations or outages can cause connection problems.

  4. Authentication: Ensure that you’ve configured the SMTP activity with the correct Gmail email address and password or an App Password (if you have two-factor authentication enabled for your Gmail account). This is necessary to authenticate with Gmail’s SMTP server.

Here are some steps you can take to troubleshoot and resolve this issue:

  1. Check Firewall and Antivirus Settings: Temporarily disable your firewall or antivirus software and try sending the email again. If it works, you may need to add an exception for UiPath in your security software settings.

  2. Double-Check Port and Server: Ensure that you’ve correctly entered port 587 and server “smtp.gmail.com” in the SMTP activity properties.

  3. Internet Connection: Verify that your machine has a stable internet connection and can access external websites. Sometimes, a network issue can disrupt SMTP connections.

  4. Authentication: Double-check your email address and password in the SMTP activity. If you have two-factor authentication enabled for your Gmail account, consider using an App Password instead of your regular password. You can generate an App Password in your Gmail account settings.

  5. SMTP Security Settings: Ensure that you’ve configured the appropriate security settings, such as “UseSSL” or “UseTLS,” depending on your Gmail account settings.

  6. Less Secure Apps: Check whether “Less secure apps” is enabled in your Gmail account settings. If not, you may need to enable it to allow external applications like UiPath to access your Gmail account.

  7. Captchas and Security Challenges: Gmail sometimes presents security challenges, like captchas, when it detects unusual sign-in attempts. Make sure you can sign in to your Gmail account from a web browser without any issues.

server : smtp.gmail.com and Port: 587 are same

and have you enabled the Enable Less Secure Apps

@ISBS_ROBOT

try to download


then you should have also

then you should have
image

Hi @ISBS_ROBOT

In the Port field you have entered like this port-587, in this we have to enter only the port number not the port text with number. Give like this 587.

Note -
The Server name has to be given with in double quotes.
The Server Port number has to be given without double quotes

Hope it helps!!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.